Borders & Fonts (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets and Accessibility



Message


chris_wolfe -> Borders & Fonts (9/11/2005 17:13:55)

Hi,

Im confused with two small things.

Firstly to do with fonts. I want to have some text in a type of handwriting style. Obviously i know the ones that our on my computer but is there a website where you can look at font that might be in the same style. So for instance i could have it looking similar on an apple etc..

Secondly is to do with inheritance. My website has a base style sheet. One of the rules it contains is about tables:

table {
border: 2px solid #E3A91E;
-moz-border-radius: 2%;
width: 750px;
}

On one table i do not want a border around it so I have used:

<table align="center" cellpadding='0' cellspacing='0' border='0'>

For some reason the table border still appears around it. Is my code wrong?

Thanks
Chris




womble -> RE: Borders & Fonts (9/11/2005 17:24:04)

This page has fonts that are common to versions of Windows and Mac equivalents. It's always safest to assume that if you're using non-standard fonts, that a user doesn't have them installed and specify a font family so that if your first choice isn't installed, it goes to the next choice etc. (or if it's just a heading or tiny bit of text, use a graphic if it's essential that font's used).

As for the table borders, you need to give that particular element an id or a class so that that overrides the rule in the base style sheet. That way it only uses that specific rule for that id or class (if you want more than one in the same style borders) leaving the rest untouched.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625