Jump to content

Recommended Posts

Hi,

I would use something like font size 12px and font style tahoma with a line height of 140% for my main content of a site.

see below for example style:

[code]
content p {
      font-family: Tahoma;
      font-size : 12px;
      font-weight : normal;
      text-align:justify;
      color : #000000;
      background-color : transparent;
      line-height : 140%;
}
[/code]

I've never had a problem with this in any browsers. As for having different font sizes for different text just give the style another name. like in my example i have got -content p- for paragraph if i wanted a header i would create another style called -content h1- then -h2- and so on. Naming the styles this way will link to the main container called content so if you have a container called sidebar for news you would use -sidebar p- or -sidebar h1- and so on.

If creating links use -content a- and define the style for the link and then use -content a:hover- to define what the text would look like if you hover over the link.

Also to get rid of the underline which is created in prgrams like dreamweaver add -text-decoration: none;- to the style for links.

Hope this helps.

Rick
Link to comment
https://forums.phpfreaks.com/topic/18667-css-font-size/#findComment-80744
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.