| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Royalty™
Join Date: Feb 2003
Location: Manchester (UK)
Posts: 3,273
|
Experimental Template
ok ok so Ive been reading some CSS stuff and when I last tried to create a webpage I got shouted at by my programme Guru friend for having <font> and laughed at how pants my HTML was. SO, this is my first proper template using CCS [/me not a code person] it was a favour for someone in exchange for lots of free webspace here,here,here and here comments please. |
|
|
|
|
|
#3 (permalink) | |
|
Anarchist by Accident...
Join Date: Feb 2003
Location: Oxfordshire UK
Posts: 129
|
Nice layout... though: <body bgcolor="#FFFFFF" text="#333333" link="#FFCC00" vlink="#FFCC00" alink="#FFCC00" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> should be in the CSS! Have looked at the finle an cleaned it up a little: Quote:
Get yourself a copy of TopStyle Lite (Free) from http://www.bradsoft.com/topstyle/download/litedload.asp It's a simple WYSIWYG CSS editor who's parent app TopStyle Pro, is the dogs nuts when it comes to CSS. There's loads of other things you could do to improve this like using CSS to style your tables instead of <table width="100%" aligh="center">. Hope that helped... |
|
|
|
|
#5 (permalink) |
|
volkswagen yellow & gold
Join Date: Apr 2003
Location: london, england.
Posts: 6,147
|
nice. you've still got a font tag in there though. also, something in the back of my head says that font-family should be last in the list when styling text. can't remember why. anyone? anyone? beuller? |
|
|
|
#6 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,206
|
Yeah a good start but you haven't really done too much with the CSS yet and as Brooklyn said there are loads of stuff you can do to slim down your html. One thing to bear in mind as your CSS file gets larger is CSS's natural inheritance. At the moment you've declared the font-family in the body tag and also used the same one in another couple of declarations lower down. CSS's natural inheritance would take care of this for you anyway - a child element taking on the parents values - and will save you time and file space in the long run. Run your site through the W3c validator and take it from there. That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
|
#8 (permalink) | |
|
Anarchist by Accident...
Join Date: Feb 2003
Location: Oxfordshire UK
Posts: 129
|
Quote:
In NN4 you have to declare anything that falls out side of the "body" as seperate styles, hence the td in the style sheet above. Most current browsers are OK with inheritance, but it doesn't hurt to go and delare them anyway. |
|
|
|
|
#10 (permalink) | |
|
Anarchist by Accident...
Join Date: Feb 2003
Location: Oxfordshire UK
Posts: 129
|
Quote:
See... I can be nice and constructive all at the same time:-) |
|
|
![]() |