Skip to main content
Participant
October 23, 2009
Question

Centering and Flush Top

  • October 23, 2009
  • 1 reply
  • 1246 views

I have made a background and some buttons with vista-buttons.  But I can't get the buttons to hug the top of the page.

Please help.  By the way, vista buttons 4.3 is really handy if only I could make them snug to the top of the page.

Thanks in advance.  Lloyd

This topic has been closed for replies.

1 reply

DwFAQ
Participating Frequently
October 23, 2009

You should LOOK HERE first!

jon8
Inspiring
October 25, 2009

to at least try and answer your question (rather then ridicule you )... To  get the body of your content to hug the top of the browser, use the following CSS:

body
{
padding-top:0px;
margin-top:0px;
}

and to center an item, use a margin of auto for left and right on the nav div.  Without digging into your code, you may have another issue going on, but at least start here with these two css changes.

FYI, a lot of the errors/warning identified by W3C are from simple improper syntax in links, which wouldn't have anything to do with your question.  For example, use & anywhere you have &

jon8
Inspiring
October 25, 2009

FYI If you do not like my posting habits you are welcome to ignore them or discontinue use of the forum. As previously mentioned I do not see how this contributes to the original topic. Are you my daddy? no. Please don't try to be. Your opinion means nothing to me so there's no use in expressing it to me.


I contributed to the original posters question, nothing more or less.  You are gaining a negative reputation here among many high profile community members.  I'm not your father, but it sounds like you need a hug from one.  I'm helping people... which should be the focus of your posts.  Give it a try.