Solved

How to stretch header dynamically with changes is user screen resolution?

Posted on 2008-10-10
3
223 Views
Last Modified: 2011-10-19
Hello,

On my site (www.globexposure.net/index.php) i have a blue bar (see attached) with rounded corners that sits above and below my map.

At present i have defined the header bar in my code as follows:
<div id="navigation" style="background: url('images/navigation.jpg') no-repeat; width:100%"></div>

...however, the right hand end is flat - how do i get it to fit properly so that the rounded corner is visible?

Many thanks
footer.jpg
navigation.jpg
0
Comment
Question by:Daniish
  • 2
3 Comments
 
LVL 42

Expert Comment

by:David S.
ID: 22685999
I use and recommend this rounded corners technique: http://www.456bereastreet.com/archive/200406/css_teaser_box_revisited/
0
 

Author Comment

by:Daniish
ID: 22686035
Its not really the rounded corners that are the issue - but how to set the % length so that no matter what size screen resolution the bars always look the same (albeit different lengths)...
0
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 22686278
Yes, I know that. Perhaps I should explain more: If you look at the demo of the  flexible variant ( http://www.456bereastreet.com/lab/teaser/flexible/ ) you'll see that it the technique works with a fluid width element.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now