SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot maileen's Avatar
    Join Date
    Apr 2006
    Posts
    158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question text is changing color when font-size changes

    Hi,

    i have the following thing :
    Code:
    <div id='Panel_Title'>Company_Overview</div>
    with CSS file like :
    Code:
    #Panel_Title
    {
    	width : 650px;
    	float : left;
    	display : inline;
    	font-size : 22px;
    	font-weight : bold;
    	color : #4193C8;	
    	margin : 0px 0px 10px 0px;
    }
    default font is "verdana in 9px with black color.

    when the font-size > 16 px, the color is not anymore light blue but brown (under FF 2.0.0.12).
    Under Opera 9.x and IE 6.0, IE 7.0 everything is ok.

    so what is the problem with FF ?

    thanks a lot.

    A.

  2. #2
    SitePoint Evangelist BJ Duncan's Avatar
    Join Date
    Jun 2007
    Location
    Bowen Mountain, NSW
    Posts
    490
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is purely just a guess, but try it will a lower-case alpha-character

    color : #4193c8; // instead of 'C'

    Let us know if that works.
    Regards,
    BJ Duncan

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    RGB colour values are case-insensitive in CSS.

    @maileen: You'll stand a better chance of getting useful replies if you provide a link to the page in question, or at least supply the full HTML and CSS. It's impossible to draw any conclusion from that excerpt.
    Birnam wood is come to Dunsinane

  4. #4
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can draw one conclusion - if he's doing what I think he is, he should be using a heading rather than a DIV.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •