Padding and margin for template does not work anymore

This is a discussion on "Padding and margin for template does not work anymore" within the Web Page Design section. This forum, and the thread "Padding and margin for template does not work anymore are both part of the Design Your Website category.



 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1  
Old Nov 25th, 2007, 16:22
LGS LGS is offline
New Member
Join Date: Oct 2007
Location: England
Age: 27
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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: Select all
* {
    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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Nov 25th, 2007, 16:29
alexgeek's Avatar
Moderator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,812
Blog Entries: 9
Thanks: 2
Thanked 2 Times in 2 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?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 25th, 2007, 16:41
LGS LGS is offline
New Member
Join Date: Oct 2007
Location: England
Age: 27
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Nov 25th, 2007, 16:41
Reputable Member
Join Date: Jun 2007
Location: uk
Posts: 459
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Nov 25th, 2007, 16:43
saltedm8's Avatar
SuperMember

SuperMember
Join Date: Nov 2005
Location: here
Age: 27
Posts: 1,522
Blog Entries: 2
Thanks: 1
Thanked 11 Times in 11 Posts
Re: Padding and margin for template does not work anymore

nope its not ie7 either, looks fine there too
Last Blog Entry: Strict and Transitional Doctype's (Sep 12th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Nov 25th, 2007, 19:49
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Nov 25th, 2007, 21:34
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Nov 29th, 2007, 12:32
LGS LGS is offline
New Member
Join Date: Oct 2007
Location: England
Age: 27
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Nov 29th, 2007, 12:48
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,691
Blog Entries: 14
Thanks: 3
Thanked 32 Times in 30 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
HTML: Select all
style="margin-top:-2px;"
to the div
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
tierney rides tboard - uk site | xtreme wales - extreme clothing
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)

Last edited by welshstew; Nov 29th, 2007 at 12:54.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Nov 29th, 2007, 13:19
LGS LGS is offline
New Member
Join Date: Oct 2007
Location: England
Age: 27
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Padding and margin for template does not work anymore

Thanks I'll try.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Nov 30th, 2007, 19:37
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,765
Thanks: 0
Thanked 14 Times in 14 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?
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
php login page was working but is not anymore? bonnit PHP Forum 6 May 26th, 2008 05:16
[SOLVED] margin and padding in different browsers danny322 Web Page Design 12 Jan 30th, 2008 13:12
[SOLVED] Padding and Margin mcdanielnc89 Web Page Design 5 Dec 24th, 2007 23:58
Strange Padding/Margin MaxCurrent Web Page Design 2 Jul 24th, 2007 10:36
Align prob (padding? margin?) m1k3 Web Page Design 5 Jun 13th, 2006 16:02


All times are GMT. The time now is 01:47.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42