Previous Message
Next Message

Float problem?

Sent by Zoe M. Gillenwater on 9 December 2004 14:02


Seth Rothberg wrote:

> Sure, but in my limited experience with absolute positioning the 
> coordinates for the spot I want to pin something to all mean different 
> things to different browsers. Plus, won't overlap occur when 
> font-sizes in neighboring pieces are bigger than the ones I used in my 
> design? I'll need to experiment with that.


It won't if you plan accordingly and set it up correctly.  In your case, 
for instance, you could wrap the nav and the search in a div and set it 
to pos relative.  Give it bottom padding set in ems, which provides the 
space for the search bar to sit.  Then set the search to pos absolute 
and position it bottom right.  Now, when you increase the font size, the 
nav will grow in size, but it will just push the search down, it won't 
overlap it.  Since the search will also still be "contained" in the 
wrapper div, it won't overlap the content below, because the expansion 
of that wrapper will just push the content below down.

That's the general idea, anyway.  The devil is in the details.  But it's 
certainly doable.  However, you have many ways to go on this, so you 
don't have to use abs pos if you don't want to.  I just wanted to point 
out that it's not as dubious as it seems. :-)

Zoe

-- 
Zoe M. Gillenwater
Design Specialist
Highway Safety Research Center
http://www.hsrc.unc.edu

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: