Hi, I am trying to change the font size of about us file...i use tags <p> in that file and when i try to use <font size=7> tag next to it, it does not change the size of the font...So i would like to ask how can i make my font size bigger?thanks:)
Hi, I am trying to change the font size of about us file...i use tags <p> in that file and when i try to use <font size=7> tag next to it, it does not change the size of the font...So i would like to ask how can i make my font size bigger?thanks:)
If you would like to define the font size you need to do it like this:
<font size ="7">Your Content.</font>
Hope this helps
Steve
Site Under Construction: adatglobal.com
Much better practice to wrap the text in a <div>, give it a class name, and style in the stylesheet.
<div class="about">Your text here.</div>
In the stylesheet:
.about {font-size:1.3em;}
Thank u all for the answers,but in both cases it did not work:-(
just one question,where in css file exactly should i put this code?
It shouldn't matter, unless the .about class appears somehere else in the stylesheet. I usually place additions at the bottom.
What I posted should have worked. If we can see your actual site (not the template demo) we may be able to help further.
Hi Stevesh,
Just a quick question to enhance my knowledge, it's fine if you don't really have time to answer but I thought I would ask!
Is it just a convenience factor as to why it is better to do as you suggested or does it help with browser compatibility, speed of loading or something along those lines?
Just was interested in the theory behind it for my educational purposes.
Thanks for your time.
Steve
Site Under Construction: adatglobal.com
The general idea behind cascading stylesheets is to save time when changes need to be made. If you use inline styling in your product descriptions, for example, if you want to change the font size, you'll need to go to each product setup page and make the change. If you've used a <div> with the same id or class name for all descriptions, it's a ten-second job to change them all in the stylesheet.
I think it's also a good habit to get into, since you learn a lot about CSS by using the Zencart stylesheets and it kind of weans you away from the flat HTML page mindset by thinking about the site as a whole.
I do use inline tags when I want to make one or two words bold, for example.
Thank you, I fully understand what you mean - Will work on adding to my best practices list!
Appreciate you taking the time...
Steve
Site Under Construction: adatglobal.com