3 replies [Last post]
gms3651
Offline
Regular
Last seen: 15 years 6 weeks ago
Joined: 2006-04-01
Posts: 12
Points: 0

Alright,
This is my first time working with CSS. I'm trying to convert my site from a table design to a CSS design. I've created a template page that all my other pages will be made from. Here is the template page - http://www.designrugs.com/css_page4.htm

I've been told that the template will do however it is by no means standard CSS. Any suggestions on how to make my site more fluid would be appreciated (espically the left side of my page).

Thanks,
Greg

DisinfectedBarfbag
DisinfectedBarfbag's picture
Offline
Enthusiast
Kent, UK
Last seen: 1 year 3 weeks ago
Kent, UK
Timezone: GMT+1
Joined: 2005-08-06
Posts: 411
Points: 1

Check out my new CSS Site (No tables)

Hi Greg, just a few small errors to fix first. I checked the html and css with the W3 validator, a good thing to do as you go along. Smile

doesn't actually change the layout as such but can help with tracing other problems later.

change <style> to <style type="text/css">

change body { 
margin:0; 
padding:0px; 
width:775; 
}
to
body { 
margin:0; 
padding:0px; 
width:775px; 
}
change <img id="header" src="images/test4.gif"> to <img id="header" src="images/test4.gif" alt="test4"> or whatever the correct name is.
change ALL <a class="class3" href=""> to <a class="class3" href="#">

As I said above this is mainly to stop the vaildator getting upset when the code is checked again. As for the layout, what changes did you have in mind,:?: what do you want the new design to do differently from the previous one :?:

briski
briski's picture
Offline
Elder
London
Last seen: 8 years 47 weeks ago
London
Timezone: GMT+1
Joined: 2004-02-16
Posts: 1066
Points: 0

Check out my new CSS Site (No tables)

DisinfectedBarfbag wrote:

change
body { 
margin:0; 
padding:0px; 
width:775; 
}

to
body { 
margin:0; 
padding:0px; 
width:775px; 
}

Actually change it to

body { 
margin:0; 
padding:0; 
width:775px; 
}

Not that the other one was wrong as such, but values of 0 don't and really should not have a unit after them

DisinfectedBarfbag
DisinfectedBarfbag's picture
Offline
Enthusiast
Kent, UK
Last seen: 1 year 3 weeks ago
Kent, UK
Timezone: GMT+1
Joined: 2005-08-06
Posts: 411
Points: 1

Check out my new CSS Site (No tables)

Yeh, but I thought that was too obvious to mention. Wink