Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



SEO Class in Chicago, IL

Learn How To Optimize Your Website on July 26, 2013


Looking for personalized in-depth SEO training among your peers?



High Rankings is offering a 1-day customized SEO training class in Chicago. Class size is limited so please sign-up now if you want in!



 


Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo
- - - - -

Beginner Struggling With Tables And Css


  • Please log in to reply
3 replies to this topic

#1 petri

petri

    HR 3

  • Active Members
  • PipPipPip
  • 78 posts

Posted 28 September 2006 - 12:21 PM

Hi,

I finally started to work with my pages but run into difficulties right away.
I use a table layout with some CSS to control the text.
I can`t find a solution to following problems.

The basic layout:

• The tables look good in Firefox but not in Explorer.
• The top image (bakground image) looks fine in Firefox but not in Explorer. Something to do with Explorer and tables? The top image appear correctly also in Explorer if I insert the picture as a graphic element inside the table, but it doesn`t work as a background image.

Links below the top image:

• I would like to separate the different links without using graphic "spacers" , or font elements (?) like the circles I use now. Can it be done with CSS?

• Explorer seems to obey the font size specified in the style sheet, but not Firefox.

I would greatly appreciate if someone could explain to me how to fix these problems.

Almost forgot... I use a Mac biggrin.gif
And the page can be found at: www.slowlife.se

#2 cfreek

cfreek

    AAAHHHH!!1one1!

  • Active Members
  • PipPipPipPip
  • 166 posts
  • Location:Richmond, Virginia, Earth

Posted 28 September 2006 - 02:00 PM

For the links spacing, you could use
margin-right: #px;
and
margin-left: #px;

Also, I see in your stylesheet, you have for a:hover a font-size with no value. and no closing ";". That could be causing you some issues.

#3 petri

petri

    HR 3

  • Active Members
  • PipPipPip
  • 78 posts

Posted 28 September 2006 - 04:50 PM

Thank you!
I corrected the a:hover too but I couldn`t see any positive (or negative) effects.

#4 Akuta

Akuta

    HR 3

  • Active Members
  • PipPipPip
  • 66 posts
  • Location:San Francisco

Posted 08 January 2007 - 09:08 PM

I'm having a difficult time finding the problems, but my best advice is to keep using classes how you are, except compact them. For example, you use "Verdana, Arial, Helvetica, sans-serif;" on almost everything in your stylesheet, but you only need it on the body {} and every other element under the body will inherit this rule. You can do this with font family/size/etc, too. You're having the difference problems with font-size because of inheriting problems, but I can't tell exactly where.

Other things... your headline tags (h1, h2, h3) don't need font-weight:bold; as they're bold by default. Apply your backgrounds in your stylesheet instead of in the HTML... this will give you more control if you need it in the future and it's much cleaner. Also, you could take your classes .days and .price and put them like this (all your classes can be put in some way like this):

.days,
.price { all your rules here } and it will apply these rules to both of those classes.

Lots of things you could improve, but first thing is to figure out everything you can to compact your stylesheet as much as possible and then you can change all your necessarily elements at once and it's much easier to debug and play with.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users