homepage Welcome to WebmasterWorld Guest from 54.211.70.79
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderator: open

CSS Forum

    
Text-bottom in Opera
Rain_Lover




msg:4435640
 6:17 pm on Mar 31, 2012 (gmt 0)

Hi,

The following doesn't work in Opera:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<style type="text/css">
p {font:10pt Arial; background:green; height:16px;}
img {width:16px; height:16px; vertical-align:text-bottom;}
</style>
</head>
<body>
<p>An <img src="https://ssl.gstatic.com/images/icons/gplus-16.png" alt=""> image with a text-bottom alignment.</p>
</body>
</html>


Is it a bug or am I missing something?
Thanks!

 

lucy24




msg:4435691
 9:09 pm on Mar 31, 2012 (gmt 0)

Boilerplate answer ;)

Exactly what does Opera do that is different from other browsers? What (in English) do you want to see?

Matter of fact, I don't think you can use "vertical-align" the way you're using it. I think it has to be something inside a div or a td. So the other browsers are just making something up.

Can we assume for the sake of discussion that the "background:green" is just there to make things show up better in testing?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved