navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Just inherited a site... trouble with CSS

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> Just inherited a site... trouble with CSS
Page: [1]
 
cooper

 

Posts: 773
From: Woburn MA USA
Status: offline

 
Just inherited a site... trouble with CSS - 1/19/2004 20:58:20   
I just took over a client's site and I am having an issue with the external CSS they have. It reads like this:

border {
border: #989898;
border-style: solid; border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin
}
.tight {
border: #989898;
border-style: solid;
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin
}
a:link {
font-family: Syntax, Arial, Verdana, Helvetica, sans-serif
text-decoration: underline;
color: #989898;

}
a:hover {
font-family: Syntax, Arial, Verdana, Helvetica, sans-serif
color: #989898;
text-decoration: none;
}
a:active {
font-family: Syntax, Arial, Verdana, Helvetica, sans-serif;
color: #989898;
text-decoration: underline;
}
a:visited {
font-family: Syntax, Arial, Verdana, Helvetica, sans-serif
color: #989898;
text-decoration: underline;
}
body {
font-family: Syntax, Arial, Verdana, Helvetica, sans-serif
font-size: 8pt;
color: #989898;
top: 0px;
clip: rect(0px auto auto auto);
}
p {
font-family: Syntax, Arial, Verdana, Helvetica, sans-serif
font-size: 8pt;
color: #989898;
top: 0px;
clip: rect(0px auto auto auto);
}
TD {
font-family: Syntax, Arial, Verdana, Helvetica, sans-serif
font-size: 8pt;
color: #989898;
top: 0px;
clip: rect(0px auto auto auto);
}


Yet when I add text to a page, it defaults to Arial and is 12pt. I don't have "Syntax" installed as a font on my system (does anyone?), but I am more concerned about the size of the text.

What am I missing?

_____________________________

Cooper

BAC Web Design - Tools & Templates - Buck A Ball - Stopspamstop.com
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: Just inherited a site... trouble with CSS - 1/19/2004 21:20:47   
Hi Cooper,
First of all your style sheet is all out of order.

Body should be the first thing styled.
Your links are out of order, they need to be in a specific order for them to work correctly, link - visited - hover - active (I believe that this is the correct order)

Parts of your rules are missing the ;
font-family: Syntax, Arial, Verdana, Helvetica, sans-serif
shouldl be
font-family: Syntax, Arial, Verdana, Helvetica, sans-serif;

If I am remembering correctly the style sheet should be such as
body
h1 etc....
p
img
lists


I'm not exactly sure if I have the images and lists correct but I believe that the order for the other things are correct. Also your classes would follow this.

Also, Syntax? is that a font name? If not, it does not belong in the font-family. Also if you are going to use a shorthand with font there is a way that you need to set that up as well. It also needs to be in order. Same with the border, margin padding,= top, right, bottom,left- this is the way that this should be. Always clockwise.

Ihope that I have not been too confusing in how i explained this and that it helps you out a bit. I have not really looked at all the styles themselves, just a glance to get you started.

_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to cooper)
Giomanach

 

Posts: 6129
Joined: 11/19/2003
From: England
Status: offline

 
RE: Just inherited a site... trouble with CSS - 1/20/2004 4:25:51   
Deb is right, the CSS is totally in the wrong order. BTW Mom, the img one isn't a valid CSS style, I tried to use it a while ago in Dreamweaver and it would not validate at all.

The links need to be:

a:link
a:visited
a:hover
a:active


Body needs to be first

Why bother with the p? that is covered by body

td can be integrated into body:

body, th, td {

....................
}

Syntax is a custom font, see if it is in any of the zip files here:

http://briefcase.yahoo.com/gio_manach

login: gio_manach
Password: please


Dan

< Message edited by Giomanach -- 1/20/2004 9:26:57 >


_____________________________




(in reply to cooper)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: Just inherited a site... trouble with CSS - 1/20/2004 7:49:38   
quote:

BTW Mom, the img one isn't a valid CSS

According to Cascading Style Sheets By Design, Yes it is.:)

ANY element that is an html element is styled with css. block leve or inline level.:)
quote:

Why bother with the p? that is covered by body

As stated above, any element is styleable, and you should always decalre your fonts in your p and in your body due to browser issues. Plus you can give your p different styles then what you give your body. Also, you should give your font sizes in your p instead of your body. Not sure of the reason, but that also is covered in the books.

Also, unless you are giving your table the same styles as your body, you don't need to cover them in body. If you are using css positioning with divs, which is basically what css is about, you won't need tables to do your page layout. Tables are for data, not for layout.

< Message edited by c1sissy -- 1/20/2004 7:54:05 >


_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to Giomanach)
Giomanach

 

Posts: 6129
Joined: 11/19/2003
From: England
Status: offline

 
RE: Just inherited a site... trouble with CSS - 1/20/2004 7:52:25   
quote:

ORIGINAL: c1sissy

quote:

BTW Mom, the img one isn't a valid CSS

According to Cascading Style Sheets By Design, Yes it is.:)

ANY element that is an html element is styled with css. block leve or inline level.:)


Probably me and my typo's lol. It wouldn't validate when I tried it about a month ago, but I did only just upgrade to MX 2004 less than a month ago, so I'll try again :)

quote:

Tables are for data, not for layout.


I only find them useful for centering my content on the page now :)

< Message edited by Giomanach -- 1/20/2004 12:57:52 >


_____________________________




(in reply to c1sissy)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: Just inherited a site... trouble with CSS - 1/20/2004 8:19:01   
The only thing that I know of that won't validate is when you style the scroll bar, plus this is only something that is availble when you have IE.
CSS2 has some newer elements that are a tad touchy with browsers, but I believe that they validate. They just aren't too browser friendly yet.

Cooper, how did you make out with the style sheets? Are they working any better?

<edit>anxiously awaiting Mhaircaish's reply to this thread:)</edit>

< Message edited by c1sissy -- 1/20/2004 10:48:53 >


_____________________________

Deb-aka-c4Ksissy
high panjandurum and alpha female of the silverback tribe
As decreed by Jesper 5-24-2003.
The only stupid question is... the one that is never asked!!
http://directory.css-styling.com
http://fmsforum.com
http://positioniseverything.net/
http://www.tanfa.co.uk/

(in reply to Giomanach)
Giomanach

 

Posts: 6129
Joined: 11/19/2003
From: England
Status: offline

 
RE: Just inherited a site... trouble with CSS - 1/21/2004 7:59:23   
quote:

<edit>anxiously awaiting Mhaircaish's reply to this thread </edit>


Your not the only one, I'm waiting for him to come and slaughter my posts :)

_____________________________




(in reply to c1sissy)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> Just inherited a site... trouble with CSS
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts