Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2008-10-10
3
247 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

807 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