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.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
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
Reply With Quote

  #2 (permalink)  
Old Nov 25th, 2007, 16:29
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
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)
Reply With Quote
  #3 (permalink)  
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.
Reply With Quote
  #4 (permalink)  
Old Nov 25th, 2007, 16:41
SuperMember

SuperMember
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.
Reply With Quote
  #5 (permalink)  
Old Nov 25th, 2007, 16:43
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,295
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: Padding and margin for template does not work anymore

nope its not ie7 either, looks fine there too
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #6 (permalink)  
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)
Reply With Quote
  #7 (permalink)  
Old Nov 25th, 2007, 21:34
SuperMember

SuperMember
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.

Reply With Quote
  #8 (permalink)  
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
Reply With Quote
  #9 (permalink)  
Old Nov 29th, 2007, 12:48
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 16 Times in 14 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
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)

Last edited by welshstew; Nov 29th, 2007 at 12:54.
Reply With Quote
  #10 (permalink)  
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.
Reply With Quote
  #11 (permalink)  
Old Nov 30th, 2007, 19:37
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
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?
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 21:51.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs 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 43