3 replies [Last post]
peter-uk
peter-uk's picture
User offline. Last seen 1 year 47 weeks ago. Offline
newbie
Joined: 2010-03-10
Posts: 6
Points: 9

Hello,
I downloaded a 3 col w/ footer template off the net. In my html editor all looks fine(centred on the page, all 3 cols are the right size), but after I upload to the server I get this:
my site

Here is the css code:

* { padding: 0; margin: 0; }
 
body {
 font-family: Verdana, Arial, Helvetica, sans-serif;
 font-size: 13px;
}
 
p {
 padding: 10px;
}
 
#wrapper { 
 margin: 0 auto;
 width: 700px;
}
 
#content { 
 float: left;
 color: #333;
 background: #990000;
 height: 350px;
 width: 400px;
 display: inline;
}
 
#footer { 
 width: 700px;
 height: 10px;
 clear: both;
 color: #333;
 background: #FFFF99;
}
 
#leftcolumn { 
 color: #333;
 background: #99FF00;
 height: 350px;
 width: 150px;
 float: left;
}
 
#rightcolumn { 
 color: #333;
 background: #0000FF;
 height: 350px;
 width: 150px;
 float: left;
}

Also, once fixed, how can I centre the 3cols + footer vertically on the page?
Any help would be much appreciated.

Deuce
Deuce's picture
User offline. Last seen 3 days 2 hours ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2005-11-20
Posts: 4416
Points: 1835

You have to upload your CSS

You have to upload your CSS as well.
http://www.professionaltilersgroup.co.uk/styles.css doesn't exist.

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph

peter-uk
peter-uk's picture
User offline. Last seen 1 year 47 weeks ago. Offline
newbie
Joined: 2010-03-10
Posts: 6
Points: 9

Deuce wrote: You have to

Deuce wrote:

You have to upload your CSS as well.
http://www.professionaltilersgroup.co.uk/styles.css doesn't exist.

LOL, sorry about that. I changed where I put my css file on the server. Thank you.
Any idea as to how I would centre it vertically? Would it just be to have a large header the same colour as the background? Appreciate your help.

Hugo
Hugo's picture
User offline. Last seen 51 min 34 sec ago. Offline
rank Moderator
Moderator
Joined: 2004-06-06
Posts: 15096
Points: 2191

Modern way would be to employ

Modern way would be to employ the display:table group of properties which would allow you to vertically align a child element display:table-cell of a display:table parent; for older browsers one need tricks to achieve this. In reality vertical dimensions are dictated by content, trying to control things to a large degree in this respect can start to smack of print paradigms

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me