How to leave (no gaps) at the top of your site??

  • LiveG
  • Novice
  • Novice
  • User avatar
  • Joined: Sep 02, 2003
  • Posts: 27
  • Loc: London
  • Status: Offline

Post September 2nd, 2003, 10:58 am

Does anyone know how to move the contents of your site up to the very top near the address bar (so there are no gaps) for your site.

For Example:

Just like this site >> (OZZU WEBMASTER FORUM) title is right at the top with no gaps. Thus using the space provided effecienty and making the site look good.

I'm using Dreamweaver MX

IS there a code, or button / command I can use in Dreamweaver or any other methods to do this etc? :?:

Thanks
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 2nd, 2003, 10:58 am

  • dreamer7
  • Student
  • Student
  • No Avatar
  • Joined: Jan 20, 2003
  • Posts: 96
  • Loc: UK
  • Status: Offline

Post September 2nd, 2003, 11:06 am

Well i just had a look at the code for the page and i get the feeling its this...
Code: [ Select ]
<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0>

if that doesn't work then perhaps the others will know
dj
  • LiveG
  • Novice
  • Novice
  • User avatar
  • Joined: Sep 02, 2003
  • Posts: 27
  • Loc: London
  • Status: Offline

Post September 2nd, 2003, 11:16 am

I'll give that one a try and I'll keep a lookout for more input regarding my query.

Thanks
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post September 2nd, 2003, 11:23 am

that would do it, just put that in the body tag in dreamweaver!
Pixel Acres V2
  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post September 2nd, 2003, 11:37 am

If you want to do it through dreamweaver you can set the top/leftmargin and marginwidth/height attribute values by right-clicking on the page in design view and then choosing "page properties" from the bottom of the menu list that appears. You can then enter your values into the dialog box that appears and dreamweaver will insert them for you. You can also choose a background image and set background and link colors from there and it will insert the attributes into the body tag for you.

You can also do this with CSS either inline in the body tag:
Code: [ Select ]
<body style="margin:0px;padding:0px">

or in an embedded or an external style sheet:
Code: [ Select ]
body {
    margin: 0px;
    padding: 0px;
}
  1. body {
  2.     margin: 0px;
  3.     padding: 0px;
  4. }
Free Programming Resources
  • tierra
  • Student
  • Student
  • User avatar
  • Joined: Aug 29, 2003
  • Posts: 91
  • Status: Offline

Post September 2nd, 2003, 3:23 pm

RichB's way of doing it is actually the better way. some of the margin tags for the body are becomed depricated in some browsers from what I understand, and it's really just so much easier to type "margin: 0px;" rather than "margintop=0 marginleft=0 marginright=0 marginbottom=0".
  • LiveG
  • Novice
  • Novice
  • User avatar
  • Joined: Sep 02, 2003
  • Posts: 27
  • Loc: London
  • Status: Offline

Post September 2nd, 2003, 3:48 pm

Quote:
RichB's way of doing it is actually the better way. some of the margin tags for the body are becomed depricated in some browsers from what I understand, and it's really just so much easier to type "margin: 0px;" rather than "margintop=0 marginleft=0 marginright=0 marginbottom=0".


hmmm, that does seem the more effecient way of doing things :bouncingsmile: Thanks

Any other ways before I begin testing let me know :)
  • dreamer7
  • Student
  • Student
  • No Avatar
  • Joined: Jan 20, 2003
  • Posts: 96
  • Loc: UK
  • Status: Offline

Post September 3rd, 2003, 3:10 am

Well css is better than html for setting out web pages anyway isn't it lol...
dj
  • tierra
  • Student
  • Student
  • User avatar
  • Joined: Aug 29, 2003
  • Posts: 91
  • Status: Offline

Post September 3rd, 2003, 1:08 pm

well yes, but, if your looking for the ultimate in supporting browsers... my sony ericsson t306 cellphone supports HTML, but it doesn't support CSS (and there really is no point to on a 101x80 pixel screen) =)
  • LiveG
  • Novice
  • Novice
  • User avatar
  • Joined: Sep 02, 2003
  • Posts: 27
  • Loc: London
  • Status: Offline

Post September 3rd, 2003, 2:12 pm

so, I shouldn't use CSS? :roll:
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post September 3rd, 2003, 2:44 pm

no use CSS the majority of people viewing your site will have no problem with it.
Pixel Acres V2
  • LiveG
  • Novice
  • Novice
  • User avatar
  • Joined: Sep 02, 2003
  • Posts: 27
  • Loc: London
  • Status: Offline

Post September 3rd, 2003, 2:54 pm

:batman: Excellent

:study: Going a bit off topic I hope everything goes well with my site. I'm a bit new at website design. The page you may view at the moment is only a test, but that's me in the picture. I have BIG plans for my Flash site. CSS it is.

Thanks
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post September 3rd, 2003, 3:24 pm

LiveG wrote:
I have BIG plans for my Flash site. CSS it is.

are you going to be making a totally flash site? because if you are, then
css is going to do you 0 good. Flash is immune to css.

If you're doing a half/hybrid site, then css will only affect the look of the
html parts.
UNFLUX.FOTO
  • LiveG
  • Novice
  • Novice
  • User avatar
  • Joined: Sep 02, 2003
  • Posts: 27
  • Loc: London
  • Status: Offline

Post September 3rd, 2003, 3:31 pm

I'm gonna put a bar at the top of the site, kinda like this forum site (the title), that's why I needed to know the no gap solution.

And, lower down in the site will be the flash part, where people can browse tunes/bibliography/lyrics/promotion etc.

Would I be able to use it in this case?
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post September 3rd, 2003, 3:35 pm

*nogz* yep!
Pixel Acres V2
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 3rd, 2003, 3:35 pm

Post Information

  • Total Posts in this topic: 21 posts
  • Users browsing this forum: No registered users and 173 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.