HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
question about css
Post new topic   Reply to topic    HTML Help Forum -> CSS
View previous topic :: View next topic  
Author Message
sudhakararaog



Joined: 01 Oct 2009
Posts: 99

PostPosted: Tue Nov 10, 2009 2:51 pm     question about css Reply with quote

i am having a small issue with font size in browsers.

i am using smarty template engine to create websites, i have originally created the html pages using css after slicing in photoshop. the pages look similar with respect to font sizes in all browsers

when i integrate this html page into smarty i am using a copy of a template in smarty to create a website, so this copy also has a css file, i have commented most of the code in this css file which is in the smarty folder and i have used my css code which i initially created.

the problem i am facing is with firefox only and all other browsers work fine

only in firefox the text for h1, h2, p, ul li, a... etc are all appearing 1px smaller in size when compared to all other browsers

i have tried using !important and inline styles however only firefox is displaying the text in the entire page 1px smaller compared to all other browsers which is not consistant.

i have the following in the css file
* {
margin: 0;
padding: 0;
border: 0;
}
body {
background: #ffffff;
font: normal 12px Arial, Helvetica, sans-serif;
margin: 0;
padding: 0;
}



please advice.

any help will be greatly appreciated.

thanks.
sticks464



Joined: 31 Dec 2006
Posts: 2625

PostPosted: Tue Nov 10, 2009 3:50 pm     Reply with quote

Try this.
sudhakararaog



Joined: 01 Oct 2009
Posts: 99

PostPosted: Tue Nov 10, 2009 4:00 pm     Reply with quote

thanks for replying

i have tried

body { font-size: 62.5%; }
and for the container

#contentholder {
width:864px;
margin:0 auto;
padding:0;
font-size: 1.2em;
}

however in firefox there is still that 1px smaller font size for the entire content compared to other browsers
sticks464



Joined: 31 Dec 2006
Posts: 2625

PostPosted: Tue Nov 10, 2009 9:43 pm     Reply with quote

You may want to give this a read. A different method.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> CSS All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial