iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old November 25th, 2007, 01:22 PM   #1
LGS
New Member
 

Join Date: Oct 2007
Location: England
Age: 29
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 LGS is on a distinguished road
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
LGS is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 25th, 2007, 01:29 PM   #2
Elite Veteran
 

Join Date: Jul 2007
Location: Webforumz 24/7
Age: 16
Posts: 3,800
Blog Entries: 9
Thanks: 2
Thanked 3 Times in 3 Posts
Rep Altering Power: 0 alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all alexgeek is a name known to all
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?
__________________
Web Design and Development Blog

Alex Perry
Technical Administrator.
alexgeek is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 25th, 2007, 01:41 PM   #3
LGS
New Member
 

Join Date: Oct 2007
Location: England
Age: 29
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 LGS is on a distinguished road
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.
LGS is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old 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 dab42pat is on a distinguished road
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.
dab42pat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old 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 saltedm8 will become famous soon enough saltedm8 will become famous soon enough
Re: Padding and margin for template does not work anymore

nope its not ie7 either, looks fine there too
__________________
Web Design
saltedm8 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 25th, 2007, 04:49 PM   #6
Highly Reputable Member
 

Join Date: Sep 2007
Age: 16
Posts: 716
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Stuart has a spectacular aura about Stuart has a spectacular aura about
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.
Stuart is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old 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
Rep Altering Power: 0 Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all
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.

Lchad is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 29th, 2007, 09:32 AM   #8
LGS
New Member
 

Join Date: Oct 2007
Location: England
Age: 29
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 LGS is on a distinguished road
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
LGS is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 29th, 2007, 09:48 AM   #9
Elite Veteran
SuperMember
 
welshstew's Avatar
 

Join Date: May 2007
Location: inside the outside
Posts: 3,910
Blog Entries: 14
Thanks: 9
Thanked 40 Times in 38 Posts
Rep Altering Power: 0 welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute welshstew has a reputation beyond repute
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 Code:
style="margin-top:-2px;"
to the div
__________________
WelshStew
extreme sports clothing and t-shirts | twitter| web design

Last edited by welshstew; November 29th, 2007 at 09:54 AM..
welshstew is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 29th, 2007, 10:19 AM   #10
LGS
New Member
 

Join Date: Oct 2007
Location: England
Age: 29
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 LGS is on a distinguished road
Re: Padding and margin for template does not work anymore

Thanks I'll try.
LGS is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old November 30th, 2007, 04:37 PM   #11
WebForumz Admin Badge
 
Marc's Avatar
 

Join Date: Apr 2007
Location: Scotland, UK
Posts: 2,086
Thanks: 2
Thanked 23 Times in 23 Posts
Rep Altering Power: 85 Marc is just really nice Marc is just really nice Marc is just really nice Marc is just really nice
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?
__________________
Regards
Marc
Administrator - Webforumz.com

Web Design and Development Blog - Marc Fraser
Marc is offline  
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

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 6 May 26th, 2008 02:16 AM
[SOLVED] margin and padding in different browsers danny322 HTML, XHTML and CSS 12 January 30th, 2008 10:12 AM
[SOLVED] Padding and Margin mcdanielnc89 HTML, XHTML and CSS 5 December 24th, 2007 08:58 PM
Strange Padding/Margin MaxCurrent HTML, XHTML and CSS 2 July 24th, 2007 07:36 AM
Align prob (padding? margin?) m1k3 HTML, XHTML and CSS 5 June 13th, 2006 01:02 PM


Search Engine Optimization by vBSEO 3.2.0 RC8