Hi
I have a strange problem with vertical-align. The case can be viewed at
http://www.brainput.info/geschichte.html.
HTML code:
<div id="bild"><img src="geschichte .gif" width="274" height="29" alt="Wir
schreiben die Geschichte Ihres Unternehmens."> </div>
CSS code:
#bild {
width: 600px;
height: 76px;
margin: 0px 0px 0px 50px;
vertical-align:bottom;
}
img {
vertical-align:top;
}
#bild img {
vertical-align:bottom;
}
Now the image should be displayed at the bottom of the div, or am I wrong?
Both IE6 and Netscape 7 display it at the top.
Strange enough: Adding "text-align:right" to the "#bild img" definition is
not working either, but when I add "border:5px solid blue" the image will be
displayed with the blue border. So the selectors must be correct.
I am quite stuck; if somebody sees where the mistake is I will be very happy
about it.
Thanks
Markus
I have a strange problem with vertical-align. The case can be viewed at
http://www.brainput.info/geschichte.html.
HTML code:
<div id="bild"><img src="geschichte .gif" width="274" height="29" alt="Wir
schreiben die Geschichte Ihres Unternehmens."> </div>
CSS code:
#bild {
width: 600px;
height: 76px;
margin: 0px 0px 0px 50px;
vertical-align:bottom;
}
img {
vertical-align:top;
}
#bild img {
vertical-align:bottom;
}
Now the image should be displayed at the bottom of the div, or am I wrong?
Both IE6 and Netscape 7 display it at the top.
Strange enough: Adding "text-align:right" to the "#bild img" definition is
not working either, but when I add "border:5px solid blue" the image will be
displayed with the blue border. So the selectors must be correct.
I am quite stuck; if somebody sees where the mistake is I will be very happy
about it.
Thanks
Markus
Comment