Log in

View Full Version : Layout Question


Mr Spock
2009-07-29, 11:33 AM
Why does the strapline not extend all the way to the page end - on my local machine it looks right , but once uploaded it looks like this:

http://www.sluttypunks.com/tgp/

I want it to run all the way across the page(100%) like the green bit at the top here at GG&J.

Please help as its driving me nuts|loony|

ecchi
2009-07-29, 01:37 PM
Your problem is that most browsers put a thin margin all around the edge of the page. You can get rid of it by placing:
marginwidth=0 leftmargin=0 marginheight=0 topmargin=0
in the body tag (or just zero the particular attributes you want zeroed). However be aware that this effects the ENTIRE page, so text will start right on the edge of the page (the first letter of every line will touch the frame of the browser). Since I have only ever used this when the page is one big table I get round it by having a margin round cells with text in them. I am guessing that if you are not using tables that there is some trick you can do with style sheets to avoid the text touching the edge, but I am not good at style sheets, so I'll have to let someone else offer a solution that way.

bDok
2009-07-29, 01:50 PM
I do this by using css

body { margin:0; padding:0; }

Useless
2009-07-29, 01:53 PM
Add
margin:0 auto;

to this:
body,td,th {
font-size: 14px;
font-weight: bold;
}

By the way, you have an </style> but not a <style type="text/css"> in your head. EDIT: found it.

marginwidth=0 leftmargin=0 marginheight=0 topmargin=0That's some antiquated and invalid HTML.

Toby
2009-07-29, 02:54 PM
That's some antiquated and invalid HTML.
But it still works, just like this antiquated webmaster. ;)

Useless
2009-07-29, 03:41 PM
But it still works, just like this antiquated webmaster. ;)
Old man! :D
One should at least put the numeric values in quotes.

ecchi
2009-07-30, 12:08 AM
Old man! :D
One should at least put the numeric values in quotes.
Umm, insisting on putting in the quotes is a sign that you are an 'old man'. :)