Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Web Design & Development
Tag Cloud
access acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard network printer problem ram registry repair router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
question about css

Reply  
Thread Tools
sudhakararaog's Avatar
Computer Specs
Senior Member with 117 posts.
 
Join Date: Sep 2007
Experience: Intermediate
10-Nov-2009, 06:48 PM #1
question about css
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.
maneetpuri's Avatar
Member with 124 posts.
 
Join Date: Oct 2008
11-Nov-2009, 05:40 AM #2
HI,

If you have define the Font Size to 12px then every browser treat it 12 px. It's very strange that firefox is showing 1px smaller then the other browsers.

May be your firefox is zoomed in. Press CTRL+0 to reset.

Hope this helps,
Cheers,
sudhakararaog's Avatar
Computer Specs
Senior Member with 117 posts.
 
Join Date: Sep 2007
Experience: Intermediate
11-Nov-2009, 03:49 PM #3
thanks for replying.

that worked i reset the zoom in firefox
adlamb's Avatar
Member with 152 posts.
 
Join Date: Nov 2004
Location: Manchester, England
Experience: I will never know enough!!
14-Nov-2009, 07:07 AM #4
mark as solved for us all please :-)
byrosemuji's Avatar
Junior Member with 3 posts.
 
Join Date: Nov 2009
25-Nov-2009, 11:06 PM #5
I have a table with 61 rows and 4 columns. Names, email, phone,
> affiliation.
>
> I want to have a solid 1px bottom border for each row. But I am not
> smart enough with CSS to figure out how to do this without giving a
> class to each TD (there are 244 of them) And I want there to be about
> 8px of margin underneath that border, or before the next person's
> name.
>
> How could I do this? I just want a bottom border. I've tried giving
> the <tr> a class that has a border-bottom assigned to it, but haven't
> been able to make it work.[/color]

If you want all the cells to have the same style, you *don't* need to give a
class to each! Suppose you give a class to the table:

<table class="someclass">

Now you can give properties to all the cells, for example:

table.someclass td { border-bottom: 1px solid red; }

This is a "decendent" or "contextual" selector, and it applies to all <td>s
found within the context of a table with the "someclass" class. It will
automatically apply to all 244 of them.

There are various ways of making space. For example, you may try:

table.someclass td { padding-bottom: 8px; }

This sort of selector is mind-blowingly powerful. Experiment, and find how to
achieve far-reaching effects with minimum impact on the HTML.
______________________________________________
child support and unemployed
wedding venues wales
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:49 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.