WEB CSS Help

Discussion in 'OT Technology' started by SaintRonin, Jun 11, 2008.

  1. SaintRonin

    SaintRonin New Member

    Joined:
    Sep 12, 2007
    Messages:
    4
    Likes Received:
    0
    Hey everyone,

    I am embedding Gallery2 into a web template in which the body tag specifies the font size to be 76%. My problem is that it is shrinking most all of the Gallery2 wording as well. How can I override this?

    body{
    padding:0;
    margin:0;
    font:76% tahoma, verdana, sans-serif;
    background:#e0e0e0;
    color:#303030;
    background: #e0e0e0;
    }
    I tried setting a definition in the div ID in order to set it back to 100% sized text for the part of the page that has the gallery embedded but it isn't working.
    #main2{
    width:730px;
    font:100% tahoma, verdana, sans-serif;
    float:left;
    padding:0 0 0 0;
    }
    Btw, I am just editing a css template downloaded from some site. I know very little about CSS beyond attempts to tweak it and/or "reverse engineer" it to figure out what it is doing/controlling.

    Any help would be appreciated.
     
  2. SaintRonin

    SaintRonin New Member

    Joined:
    Sep 12, 2007
    Messages:
    4
    Likes Received:
    0
    P.S. I think that I could just set the font to 76% in every other tag to achieve the same result, but I'd rather only haver to change it one place, and have the ability to override it. Plus I'll learn some more about CSS. :hsd:
     
  3. Seeders

    Seeders OT Supporter

    Joined:
    Jul 10, 2007
    Messages:
    3,750
    Likes Received:
    0
    ..should work.
     
  4. gobbles

    gobbles .

    Joined:
    May 6, 2006
    Messages:
    422
    Likes Received:
    0
    By setting #main2 to 100% you are just telling it to scale the font to 100% of whatever the parent's font-size is, which is 76%.
     
  5. gobbles

    gobbles .

    Joined:
    May 6, 2006
    Messages:
    422
    Likes Received:
    0
    try setting #main2's font-size to 132% . . . :hsugh:
     

Share This Page