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

  • LiveG
  • Novice
  • Novice
  • User avatar
  • Posts: 27
  • Loc: London

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • dreamer7
  • Student
  • Student
  • dreamer7
  • Posts: 95
  • Loc: UK

Post 3+ Months Ago

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
  • Posts: 27
  • Loc: London

Post 3+ Months Ago

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
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

that would do it, just put that in the body tag in dreamweaver!
  • RichB
  • Guru
  • Guru
  • User avatar
  • Posts: 1121
  • Loc: Boston

Post 3+ Months Ago

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. }
  • tierra
  • Student
  • Student
  • User avatar
  • Posts: 91

Post 3+ Months Ago

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
  • Posts: 27
  • Loc: London

Post 3+ Months Ago

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
  • dreamer7
  • Posts: 95
  • Loc: UK

Post 3+ Months Ago

Well css is better than html for setting out web pages anyway isn't it lol...
dj
  • tierra
  • Student
  • Student
  • User avatar
  • Posts: 91

Post 3+ Months Ago

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
  • Posts: 27
  • Loc: London

Post 3+ Months Ago

so, I shouldn't use CSS? :roll:
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

no use CSS the majority of people viewing your site will have no problem with it.
  • LiveG
  • Novice
  • Novice
  • User avatar
  • Posts: 27
  • Loc: London

Post 3+ Months Ago

: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
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

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.
  • LiveG
  • Novice
  • Novice
  • User avatar
  • Posts: 27
  • Loc: London

Post 3+ Months Ago

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
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

*nogz* yep!
  • LiveG
  • Novice
  • Novice
  • User avatar
  • Posts: 27
  • Loc: London

Post 3+ Months Ago

:D Yes right? Excellent..

Ps: nogz? :? Appologies for my misunderstanding (I'm English) :lol:
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

yes you can use it on the html parts, the flash parts will have to be
formatted manually by you in the movie itself. hope that makes sense...
  • LiveG
  • Novice
  • Novice
  • User avatar
  • Posts: 27
  • Loc: London

Post 3+ Months Ago

Yup, thanks

I'll put your widsom to good use in my site :)
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

hehe wisdome...yeah right, suuuuuure ;)

good luck with it, and let us know how it goes.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

nogz == nods

//sorry for the confusion, I am a kid! :-P
  • LiveG
  • Novice
  • Novice
  • User avatar
  • Posts: 27
  • Loc: London

Post 3+ Months Ago

:roll: kids these days hehe :wink:

Post Information

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

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