HighDots Forums  

Re: Why doesnt the second row show up?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: Why doesnt the second row show up? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Why doesnt the second row show up? - 05-09-2005 , 12:02 AM






Al wrote:
Quote:
Hi ppl,

I have copied some code for a 3 column layout with a banner row at the
top.

I am fiddling with the code and went to add a second banner row but it
did not behave as I expected.

Can someone please explain?
A quick glance: id must be unique on a page, and you have two of them
named "banner".

Quote:
div id="banner"><h1>banner row1</h1></div

div id="banner"><h1>banner row2</h1></div
Try making one #banner and the other #banner2 or similar.

--
-bts
-This space intentionally left blank.


Reply With Quote
  #2  
Old   
Al
 
Posts: n/a

Default Re: Why doesnt the second row show up? - 05-09-2005 , 12:37 AM






Could I just make them a class instead?

Well actually I did make them a class but it did not fix the
problem....

-Al


Reply With Quote
  #3  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Why doesnt the second row show up? - 05-09-2005 , 12:56 AM



Al wrote:
Quote:
Could I just make them a class instead?
You could, but a banner area is a major section of real estate on the
page, so I feel that an id is more appropriate.

Quote:
Well actually I did make them a class but it did not fix the
problem....
Since you only have one style set for these two banner areas, why not
simply put the info for both in the first banner div? Use a bit of
vertical space between...

After another glance at your code (I didn't copy it to a real page),
it looks as if you have a 40px high banner and content that is:

position: absolute;
top:50px;

...so any second banner space is going to be under/behind the content.

Change those "top: 50px" to .. 150px ? See what happens.

--
-bts
-This space intentionally left blank.


Reply With Quote
  #4  
Old   
Al
 
Posts: n/a

Default Re: Why doesnt the second row show up? - 05-09-2005 , 04:44 AM



Yep - got it sussed now. This CSS takes a bit of getting used to but I
can see its advantages.

-Al


Reply With Quote
  #5  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Why doesnt the second row show up? - 05-09-2005 , 10:13 AM



Al wrote:
Quote:
Yep - got it sussed now. This CSS takes a bit of getting used to
but I can see its advantages.
It's a mindset. <g> So, we gather the positioning was the solution?

Look into setting the sizing of divs, and positioning, by using em
units instead of px, and your design will float and properly expand
when a visitor changes font sizes.

--
-bts
-This space intentionally left blank.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.