HighDots Forums  

Re: mixed widths and positioning

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


Discuss Re: mixed widths and positioning in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stephen Poley
 
Posts: n/a

Default Re: mixed widths and positioning - 11-14-2003 , 06:13 AM






On Wed, 12 Nov 2003 20:01:19 GMT, Brian
<usenet1 (AT) julietremblay (DOT) com.invalid-remove-this-part> wrote:

Quote:
My template has div#content then div#navigation, which contains an
unordered list of links. I have positioned div#navigation on the left
side using the following:

BODY {
margin-left: 9.6em;
}

#navigation {
position: absolute;
width: 9em;
height: 100%;
top: 0;
bottom: 0;
left: 0;
}

I'd like to add a graphic to div#navigation, a 140px wide gif file.
Have I painted myself into a corner? How can I place the image in
#navigation and be sure that there is adequate space for both the
image and the text links?
Maybe you could float the navigation bar left rather than using absolute
positioning/margins, set the width in pixels and min-width in ems? That
should work for everyone except IE users who have set a larger font size
(and according to certain users of fixed pixel fonts, almost no IE users
know how to adjust their font size anyway ...)

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Reply With Quote
  #2  
Old   
Andreas Keil
 
Posts: n/a

Default Re: mixed widths and positioning - 11-16-2003 , 10:58 AM






"Brian" <usenet1 (AT) julietremblay (DOT) com.invalid-remove-this-part> a écrit
dans le message de news:iZ6tb.198728$Tr4.568169 (AT) attbi_s03 (DOT) ..
Quote:
I wonder if it's feasible to allow authors to suggest widths as
equations (width: 100% - 9em). Boy, that'd be nice. It'd also be
*years* down the road, if it is even possible.
I stongly support this point! I have the problem, that I want to
construct a absolute positioned navigation bar with an em width and px
borders. So, up to now, it seems impossible for me to absolutely
position the content box so that the edges are exactly aligned, because
I'd need sth. like
left: 20em+2px;

--
Andreas
To reply via e-mail, please remove the fruit and the ".invalid" top
level domain from my address.




Reply With Quote
  #3  
Old   
Markus Ernst
 
Posts: n/a

Default Re: mixed widths and positioning - 11-17-2003 , 03:10 AM



"Brian" <usenet1 (AT) julietremblay (DOT) com.invalid-remove-this-part> schrieb im
Newsbeitrag news:iZ6tb.198728$Tr4.568169 (AT) attbi_s03 (DOT) ..

Quote:
I wonder if it's feasible to allow authors to suggest widths as
equations (width: 100% - 9em). Boy, that'd be nice. It'd also be
*years* down the road, if it is even possible.
You've got the point. It would not only be nice but - in combination with
the W3C box model which makes it impossible to for example use a width of
100% with a padding or a border - it actually would be a must. That's my
problem with standards complying HTML/CSS: If an easy everyday task as
combining a logo with the rest of the page is such a big problem, the
standards seem to be not good enough.

--
Markus




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.