Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 


Web Building >> Web design & build
 |  Print Topic
Jump to first unread post. Pages: 1
Froggy
regular


Reg'd: Mon
Posts: 76
css help
      #348130 - Thu May 17 2007 01:48 PM

Hi all,

I have made a start on a website for work. I have a plan of what i want it to look like and am using dreamweaver and css to code.

I have a menu bar which is a picture and then a red block bellow called header with the text links inside.

I have used css to do possition of the menupic and links:

#header {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
}

#menu {
position: absolute;
top: 166px;
left: 0px;
width: 100%;
height: 22px;
padding: 5px;
background-color: #FF0000;
color: #FFFFFF;
}

The called them into the html code like this:

<body bgcolor="#FFFFFF">
<div id="header">
<img src="menubar.jpg" alt="header image" width="100%" height="166px"/></div>
<div id="menu">Products | Quote | Make Payment | Download | Portfolio | How to Find Us | Feedback</div>

However the picture is shorted that the red menubar.

Any ideas how i get it to fit 100% of the screen without the scroll and both end at the same time?

any info needed just ask. i hope you can understand me!!

thank you


Post Extras: Print Post   Remind Me!   Notify Moderator  
ianm
regular


Reg'd: Fri
Posts: 345
Loc: Colchester
Re: css help [Re: Froggy]
      #348269 - Thu May 17 2007 11:59 PM

A link to the page would be handy, for your image you have used a width of 100%, you need to specify it in pixels, however what you can do is make it a background image and get it to tile across the page with repeat-x. try this css



#header {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
background: #fff url("../images/menubar.jpg"); background-repeat: repeat-x;
}

#menu {
position: absolute;
top: 166px;
left: 0px;
width: 100%;
height: 22px;
padding: 5px;
background-color: #FF0000;
color: #FFFFFF;
}

then remove the image from you html and see how it looks,

Hope this helps

Reagrds


Post Extras: Print Post   Remind Me!   Notify Moderator  
Froggy
regular


Reg'd: Mon
Posts: 76
Re: css help [Re: ianm]
      #348348 - Fri May 18 2007 03:20 PM

Ok thank you for your help.
I have not put the website online yet as we have been looking into getting a dedicated server in work. So am waiting for him to sort that out and i will put the site up then.

Thank you for your advice. I am going to try it out now.

Cheers


Post Extras: Print Post   Remind Me!   Notify Moderator  
Froggy
regular


Reg'd: Mon
Posts: 76
Re: css help [Re: Froggy]
      #348373 - Fri May 18 2007 04:29 PM

Have worked out why my image bar was longer than the menupic

It was because i used padding: 5px; in my cose for the links bar! when i removed this the bar went 100% acorss my screen just like the image!


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
0 registered and 9 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 0

Contact Us | Privacy statement Main website