|
|
 |
November 25th, 2007, 01:22 PM
|
#1
|
|
New Member
Join Date: Oct 2007
Location: England
Age: 29
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Padding and margin for template does not work anymore
Hi. I had a website where I used padding and margin as 0 for my css to make both the top and bottom equal with the page (otherwise there would be white space between the template and the browser).
I'm trying to use it again, but it won't work, and I've used the exact same method.
Code:
* {
margin: 0px;
padding: 0px;
}
That's the code but it doesn't work. Here is my site, how can I fix it?
http://www.ruthlessintent.com/Final
|
|
|
November 25th, 2007, 01:29 PM
|
#2
|
|
Elite Veteran
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 16
Posts: 3,800
Thanks: 2
Thanked 3 Times in 3 Posts
|
Re: Padding and margin for template does not work anymore
I don't see what the problem is but I must add that your site takes ages to load.
Do you have to use so many images?
|
|
|
November 25th, 2007, 01:41 PM
|
#3
|
|
New Member
Join Date: Oct 2007
Location: England
Age: 29
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: Padding and margin for template does not work anymore
Sorry forgot to mention that. I'm not bothered about site optimisation as it's just for a college assignment so I do not need to improve the load time.
If you mean you don't see what I mean:
At the top and bottom of the template, you can see black space between the edge of the template and the browser yes? Usually when I use the CSS code I posted it would remove that and make the page hug the template.
|
|
|
November 25th, 2007, 01:41 PM
|
#4
|
|
Reputable Member
Join Date: Jun 2007
Location: uk
Posts: 461
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: Padding and margin for template does not work anymore
Is this an ie7 issue as i have looked on ie6 and ff and it seems fine.
|
|
|
November 25th, 2007, 01:43 PM
|
#5
|
|
Most Reputable Member
SuperMember
Join Date: Nov 2005
Location: webprocafe
Age: 28
Posts: 1,544
Thanks: 1
Thanked 11 Times in 11 Posts
Rep Altering Power: 0
|
Re: Padding and margin for template does not work anymore
nope its not ie7 either, looks fine there too
|
|
|
November 25th, 2007, 04:49 PM
|
#6
|
|
Highly Reputable Member
Join Date: Sep 2007
Age: 16
Posts: 716
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: Padding and margin for template does not work anymore
This is probably caused by the table you're using for your entire page, which is crap by the way! Remove the table and use divs instead.
|
|
|
November 25th, 2007, 06:34 PM
|
#7
|
|
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,941
Thanks: 0
Thanked 0 Times in 0 Posts
|
Re: Padding and margin for template does not work anymore
I'm not really seeing a black edge either. Maybe if I squinted really hard I might see a 1px black edge on the top and bottom. Is that what you mean? Otherwise if not, I'd say you need to refresh your browser and clear your cache.

|
|
|
November 29th, 2007, 09:32 AM
|
#8
|
|
New Member
Join Date: Oct 2007
Location: England
Age: 29
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: Padding and margin for template does not work anymore
Thanks for looking everybody, and as I said this was a rush job to see who could make a nice looking template quickly, not optimise it and such!!
Anyway, it's not that bad I agree but I am a bit of a picky one. It's about 2px above and below the template, kind of like a border.
I just kinda want it gone because it disrupts the flow of the template, the two silver borders are supposed to be full browser size so it makes them look cut off.
Here is what I mean:
www.ruthlessintent.com/dk.JPG
|
|
|
November 29th, 2007, 09:48 AM
|
#9
|
|
Elite Veteran
SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 3,910
Thanks: 9
Thanked 40 Times in 38 Posts
|
Re: Padding and margin for template does not work anymore
I think the issue is that you are using a combination of tables and divs. this adds some 'space' (about 2px) to the top of your site. you will need to decide what you want to use.
the other option would be to add
to the div
Last edited by welshstew; November 29th, 2007 at 09:54 AM..
|
|
|
November 29th, 2007, 10:19 AM
|
#10
|
|
New Member
Join Date: Oct 2007
Location: England
Age: 29
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0
|
Re: Padding and margin for template does not work anymore
Thanks I'll try.
|
|
|
November 30th, 2007, 04:37 PM
|
#11
|
Join Date: Apr 2007
Location: Scotland, UK
Posts: 2,086
Thanks: 2
Thanked 23 Times in 23 Posts
|
Re: Padding and margin for template does not work anymore
You really need to check your website in FF 2.0.010 it's completely messed up. The content is shifted to the left by quite far. If you like, i can post a Screenshot?
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|