removing whitespace

This is a discussion on "removing whitespace" within the Web Page Design section. This forum, and the thread "removing whitespace 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 Sep 1st, 2006, 03:25
New Member
Join Date: Sep 2006
Location: California
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
removing whitespace

I wish to put a banner all the way in the upper left hand corner with no whitespace on the left side or on top of it. How do i do that in html or xhtml? Or do i need to use something else like css? I've tried setting hspace and vspace to zero but i still see some white space left. Thank you.
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 Sep 1st, 2006, 11:59
minute44's Avatar
Most Reputable Member

SuperMember
Join Date: Apr 2006
Location: Nottingham UK
Age: 25
Posts: 1,351
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: removing whitespace

Do it with CSS

Code: Select all
body {
    margin: 0px;
}

#header {
    float: left;
    margin: 0px;
}
Last Blog Entry: Annoying people.... (Jan 16th, 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 Sep 1st, 2006, 14:16
Elite Veteran
Join Date: Aug 2005
Location: That Place
Posts: 2,044
Blog Entries: 1
Thanks: 0
Thanked 37 Times in 37 Posts
Re: removing whitespace

Also add padding:0;. Some browsers handle the two differently.

so

padding:0;
margin:0;

and on 0 values no px, em etc is required. Save some ascii =P
__________________

Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 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
  #4  
Old Sep 1st, 2006, 14:23
minute44's Avatar
Most Reputable Member

SuperMember
Join Date: Apr 2006
Location: Nottingham UK
Age: 25
Posts: 1,351
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Re: removing whitespace

oh yeah oops
Last Blog Entry: Annoying people.... (Jan 16th, 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
Reply

Tags
removing, whitespace

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
whitespace alexgeek PHP Forum 11 Sep 23rd, 2007 20:02
Removing objects in an array breepupetstofight ASP.NET Forum 0 Sep 17th, 2007 13:00
help on removing element using yui shotokan99 JavaScript Forum 1 Aug 31st, 2007 13:42
Removing + from PHP GET sanctumsolitude PHP Forum 1 Jun 23rd, 2007 02:49
store whitespace but not interpret it in <br> ktsirig PHP Forum 2 Apr 13th, 2006 18:46


All times are GMT. The time now is 08:19.


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