![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
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? |
#2
| |||
| |||
|
|
Brian <usenet1 (AT) julietremblay (DOT) com.invalid-remove-this-part> wrote in message news:<jkwsb.134066$275.396634@attbi_s53>... 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? You can just do: div id="navigation" img src="foo" ul> ...Text links... </ul /div You could get into trouble if 9em < 140 px, which depends on the user's settings. |
#3
| |||
| |||
|
|
One could try setting 'max-width: 9em' for the image |
|
but after all we rely on that in most of the cases 9em would be greater than 140px. |
#4
| |||
| |||
|
|
"Stanimir Stamenkov" <s7an10 (AT) netscape (DOT) net> schrieb im Newsbeitrag news:bovu39$1ia4ln$1 (AT) ID-207379 (DOT) news.uni-berlin.de... One could try setting 'max-width: 9em' for the image That means resizing the logo which gives very bad display results with graphics, specially logos. but after all we rely on that in most of the cases 9em would be greater than 140px. I am not sure how an em is calculated; from the typographer's point of view it should equal the font size. If you calculate 140px/9 you get a minimum font size of 16 pixels which equals 12 points on 96ppi Windows monitors. That matches quite a large part of the audience. On Mac systems which calculate screen resolution of 72ppi you get a minimum font size of 16 points which will be greater than most user settings. So these users will have a bad display. That's just an approach as some browsers also handle font sizes differently. |
#5
| |||
| |||
|
|
Given the presumption that 9em > 140px on most user systems the image won't scale larger than 140px therefore there would be no distortion. When on a particular user system 9em become less than 140px the image will scale down but won't overflow the 9em width menu container therefore won't cover any important part of the main document. |
![]() |
| Thread Tools | |
| Display Modes | |
| |