Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Apr 2008
    Posts
    33
    Plugin Contributions
    0

    Default Re: main page font size

    ok, thanks for that. I have managed to change the "name" and "email address" font size. I have also downloaded the developers plug-in which is really useful - thanks.

    Obviously I don't understand how the stylesheet works. Its confusing as some elements seem to have the same controls but when you make a change different things seem to happen e.g. using the developers plug-in I have identified the controls for the "snow-kit.com" and telephone number on the Contact Us page. When you make these changes the font size in the .sideBoxContent changes as well. This seems to be controlled by:

    h4, h5, h6, label, h4.optionName, legend, address, .sideBoxContent, .larger (line 51)
    {
    font-size: 1.3em;
    }

    but why are they different sizes even though the stylesheet calls 1.3em?

  2. #12
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: main page font size

    Using the em for font size rather than,say, pt causes the font you're setting to be a percentage of the font size of the parent element.

    So, the font size of the parent element (body, for example) is considered 1em, and if you set a font relative to that to 1.3em, it'll be 30% bigger.

    It's done so websites scale properly in different browsers, screen resolution, etc.

    There are some really good, and understandable, CSS tutorials on the Web. Knowing a little about it makes it a lot easier to template Zencart.




    h4, h5, h6, label, h4.optionName, legend, address, .sideBoxContent, .larger (line 51)
    {
    font-size: 1.3em;
    }



    Most importantly, you can split these types of elements, so that legend, for example would be on its own. So,

    h4, h5, h6, label, h4.optionName, address, .sideBoxContent, .larger (line 51)
    {
    font-size: 1.3em;
    }

    legend {
    font-size:1.Xem;
    }



    That might fix what you're dealing with.
    Last edited by stevesh; 10 Aug 2008 at 05:36 PM.

  3. #13
    Join Date
    Apr 2008
    Posts
    33
    Plugin Contributions
    0

    Default Re: main page font size

    Excellent Stevesh - that seems to have solved some of it - I'll work through all the issues in the same way.

    Many thanks

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Changing Font Size of Sub Catagories on Main Page
    By princess_care in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Mar 2011, 04:41 AM
  2. Font size of category images on Main Page.
    By dgent in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Mar 2011, 04:28 AM
  3. Font size on main page
    By msatkn in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 29 Apr 2008, 03:23 PM
  4. Edit the font size of products description on main page
    By scottyg in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Feb 2007, 12:49 PM
  5. Main page font size
    By fauxtog in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Sep 2006, 08:38 PM

Posting Permissions

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