Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Problem with CSS Validation
Old 05-27-2009, 09:44 AM Problem with CSS Validation
RoyDixon's Avatar
Super Talker

Posts: 107
Name: Roy Dixon
Location: Iowa, same as Kirk
Trades: 0
This is my first site, and I had absolutely no knowledge of HTML or CSS when I started. It's all been trial and error, and I could use some advice.

My biggest mistake was not learning HTML and CSS before I started. I built the site with Dreamweaver, using video tutorials from the web. I made a lot of "uneducated guesses", took some chances and, somehow, the site seems to work.

I am going to rebuild the site from scratch after I learn HTML and CSS, but I need to keep my site up and running during this process.

My HTML has been validated (although it is probably very sloppy)
My CSS, however, has some problems. If someone could look at my CSS and tell me if I have made a terrible mess of it, or if I simply have a few fundamental problems, I would greatly appreciate it.

The URL is http://www.themonumentartist.com

Thanks again.
__________________

Please login or register to view this content. Registration is FREE
RoyDixon is offline
Reply With Quote
View Public Profile Visit RoyDixon's homepage!
 
 
Register now for full access!
Old 05-27-2009, 10:12 AM Re: Problem with CSS Validation
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
The only thing the validator is griping about is that script inside your css file. It doesn't belong there, it belongs in your page. The only thing that goes into a css file -- is css rules
You also don't want the <style></style> tags in there either.

Other than that, the css isn't too bad. Learning some css shorthand will clean it up once you get the hang of it. CSS shorthand will turn this:

Quote:
margin-top: 10px;
margin-right: 10px;
margin-bottom: 10px;
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-top-style: solid;
border-right-style: solid;
border-bottom-style: solid;
border-top-color: #471812;
border-right-color: #471812;
border-bottom-color: #471812;
border-left-color: #471812;
into this:
Quote:
margin: 10px 10px 10px 0; (TopRightBottomLeft - think TRouBLe )
border: 1px solid #471812;
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-27-2009, 11:26 AM Re: Problem with CSS Validation
RoyDixon's Avatar
Super Talker

Posts: 107
Name: Roy Dixon
Location: Iowa, same as Kirk
Trades: 0
Thanks, LnR, for the help. I removed the script and the <style></style> tags. Now the validator finds no errors. It does, however, show 34 warnings, all of them seem to involve colors. Is this something that I need to worry about?
__________________

Please login or register to view this content. Registration is FREE
RoyDixon is offline
Reply With Quote
View Public Profile Visit RoyDixon's homepage!
 
Old 05-27-2009, 03:27 PM Re: Problem with CSS Validation
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
No, nothing to really worry about. The validator apparently looks for background and foreground colors defined on everything, not always necessary IMO.

By the way, your work is amazing !
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Last edited by LadynRed; 05-27-2009 at 03:28 PM..
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 05-27-2009, 06:40 PM Re: Problem with CSS Validation
RoyDixon's Avatar
Super Talker

Posts: 107
Name: Roy Dixon
Location: Iowa, same as Kirk
Trades: 0
Thanks, LadynRed, you just made my day!
__________________

Please login or register to view this content. Registration is FREE
RoyDixon is offline
Reply With Quote
View Public Profile Visit RoyDixon's homepage!
 
Reply     « Reply to Problem with CSS Validation
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.20891 seconds with 12 queries