Can't remove white border around webpage

  • twocent
  • Novice
  • Novice
  • twocent
  • Posts: 18

Post 3+ Months Ago

I'm going nuts. I have a gradient that I want to stretch across my screen as a background for my page header and navbar, but I have this white border around my web page. I've been trying for two days to remove this. Has anyone seen this before?

http://www.anewjersey.net
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

simply add this to the header area of your webpage


Code: [ Select ]
<style type="text/css">
<!--
body {
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
 margin-left: 0px
}

-->
</style>
  1. <style type="text/css">
  2. <!--
  3. body {
  4.  margin-top: 0px;
  5.  margin-right: 0px;
  6.  margin-bottom: 0px;
  7.  margin-left: 0px
  8. }
  9. -->
  10. </style>
  • partyjan
  • Student
  • Student
  • partyjan
  • Posts: 69
  • Loc: Norway

Post 3+ Months Ago

I`m looking through your source code and don`t find anything specific that should be wrong....Try the same site without the doctype tag...
  • twocent
  • Novice
  • Novice
  • twocent
  • Posts: 18

Post 3+ Months Ago

Thanks Spoof, it worked. That was driving me nuts.
  • rlynch
  • Born
  • Born
  • rlynch
  • Posts: 1

Post 3+ Months Ago

SpooF wrote:
Code: [ Select ]
<style type="text/css">
<!--
body {
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
 margin-left: 0px
}

-->
</style>
  1. <style type="text/css">
  2. <!--
  3. body {
  4.  margin-top: 0px;
  5.  margin-right: 0px;
  6.  margin-bottom: 0px;
  7.  margin-left: 0px
  8. }
  9. -->
  10. </style>

this can also be simplified to:

Code: [ Select ]
<style type="text/css">
<!--
body {
 margin: 0px;
 }
-->
</style>
  1. <style type="text/css">
  2. <!--
  3. body {
  4.  margin: 0px;
  5.  }
  6. -->
  7. </style>
  • murcielagossi
  • Proficient
  • Proficient
  • User avatar
  • Posts: 457

Post 3+ Months Ago

Or if you still want to specify the other margins use:
Code: [ Select ]
<style type="text/css">
<!--
body {
 margin: 0px 0px 0px 0px;
 }
-->
</style>
  1. <style type="text/css">
  2. <!--
  3. body {
  4.  margin: 0px 0px 0px 0px;
  5.  }
  6. -->
  7. </style>


Going in margin order of....top....right...bottom...left (Clockwise I guess)
  • Shiggity
  • Born
  • Born
  • Shiggity
  • Posts: 1

Post 3+ Months Ago

Or even further simplified to

Code: [ Select ]
<style type="text/css">
<!--
body {
 margin: 0;
}

-->
</style>
  1. <style type="text/css">
  2. <!--
  3. body {
  4.  margin: 0;
  5. }
  6. -->
  7. </style>
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Shiggity wrote:
Or even further simplified to

Code: [ Select ]
<style type="text/css">
<!--
body {
 margin: 0;
}

-->
</style>
  1. <style type="text/css">
  2. <!--
  3. body {
  4.  margin: 0;
  5. }
  6. -->
  7. </style>


I believe rlynch has posted that code previously.
  • HindenPeter
  • Born
  • Born
  • HindenPeter
  • Posts: 2

Post 3+ Months Ago

Hey guys, I know I'm reviving a dead thread, but I'm experiencing the same problem, and none of the suggestions I've found fix my problem, including the body css code. Any help would be awesome. I can't post a legitimate link, cuz your forum won't let me, so this is the best I can do: http://hindenpeter.byethost16 [dot]com/demo1.html
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Can't view the link after I fixed it... '0' => 'o'
  • HindenPeter
  • Born
  • Born
  • HindenPeter
  • Posts: 2

Post 3+ Months Ago

Thanks for the reply, Bogey, not sure why you can't see the site, but I fixed it either way. Pretty simple problem, really... there was a # before body.
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

Oh ok... glad you got that fixed.

Post Information

  • Total Posts in this topic: 12 posts
  • Users browsing this forum: No registered users and 48 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.