On my front page I have multiple entries for the different categories and articles on the site
for each entry do I need this tag <div class=“entry”>
or can I place one at the top of the page?
Thank you
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
February 16, 2011 1:15pm
Subscribe [3]#1 / Feb 16, 2011 1:15pm
On my front page I have multiple entries for the different categories and articles on the site
for each entry do I need this tag <div class=“entry”>
or can I place one at the top of the page?
Thank you
#2 / Feb 17, 2011 1:41am
bthom62,
What do you wish to do?
Do you want to style each entry or style the container that the entries are in via CSS?
You don’t need the tag unless you want to target each entry with a style.
Does that make sense?
#3 / Feb 17, 2011 8:11am
this is tied into my other post regarding site hanging
I do not need different different styles
I was more worried about the site having problems running properly without the tags
#4 / Feb 17, 2011 3:26pm
bthom62,
I’m moving this to the CSS HTML help forum as EE’s functionality is not dependent on HTML. If you need further assistance just let us know.
#5 / Feb 17, 2011 3:30pm
Thank you
#6 / Feb 17, 2011 3:50pm
bthom62,
Now to be more specific. If you need to apply CSS to an individual post the easiest way to do that is by using code similar to the following.
{exp:channel:entries}
<div class="entry">
{title}
{body}
</div>
{exp:channel:entries}That way you can target your class with css.
Does that help?
#7 / Feb 17, 2011 3:54pm
So On my front page
I have (guessing) 15 entries to promote my different categories and columns
I can run 1 div tag at the top of the page
{exp:channel:entries limit="15"}
and then end the tag at the bottom with </div>