Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

having Error in my header Check this out Rate Topic   - - - - -

 
  • Cached
  • Member
  • Members
  • Join Date: 02-Mar 11
  • 49 posts

Posted 23 March 2011 - 08:39 AM #1

this is my header

http://dev.amadiinc.com/amadi/


and this is my style.css

.top_bg_images{
background:url(images/amadi_master.gif);
background-repeat: no-repeat;
float: center;
height: 118px;
width: 900px;


how can i make it fit??

Thanks

God Bless you all

:) :cool:

 
  • brandonvd
  • is Super Awesome
  • Members
  • Join Date: 19-Dec 06
  • 2633 posts

Posted 23 March 2011 - 02:10 PM #2

Well, you kind of have a couple of choices.

1.) make your header wider to fit all the way across.
2.) Make your site narrower to fit the header
3.) Center the header and leave big white sections on either side.

I'd recommend making your header a little wider to stretch across the top. If you make the site narrower you can potentially run into problems later on.

If you just center your current image, it's going to look pretty bad. But, if that is what you want to do, you need to do this with your style:

.top_bg_images {
    background: url("images/amadi_master.gif") no-repeat scroll 0 0 transparent;
    height: 118px;
    margin-left: 34px;
    width: 900px;
}

Hope that helps,

Brandon