Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 97401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:59:52+00:00 2026-05-10T23:59:52+00:00

My question revolves around CSS Fixed Layout vs a Float Layout that extends to

  • 0

My question revolves around CSS Fixed Layout vs a Float Layout that extends to fill the width of the browser.

Right now the issue I’m running into is to have the masthead resize depending on the width of the page (something that I understand isn’t possible given current browser implementation of CSS3’s background-image: size;). At this point, I feel like I’ve reached an impasse all around: Do I rework the site to use a fixed CSS layout, or do I keep the current layout and try to make the masthead image expand to fill most of the space provided? Moreover, what are the pros and cons of moving to a fixed width layout, and the other (unseen) ramifications of using one layout over another?

The site in question will be given as a comment to this question — I don’t want to be seen as trying to increase traffic to it.

Edit: Any other thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:59:53+00:00Added an answer on May 10, 2026 at 11:59 pm

    What about revealing more or less of the image as the browser is resized, rather than scaling the image? It’s not quite the same effect, but it’s an easy way to fill an entire space with an image.

    Let’s assume, for the sake of the example, that your masthead’s background image contains a logo of some sort on top of, say, a photograph of a city skyline. This is, overall, 1600px wide. The logo sits to the left of the image while the cityscape extends far right. And we’ll assume your markup looks roughly like this:

    <div id='page'>   <div id='masthead'>...</div>   <div id='navigation'>...</div>   ... </div> 

    We can set the #page element to an elastic width and apply a background image to the #masthead element:

    #page {   max-width: 1600px;   min-width: 800px;   width: 80%; }  #masthead {   background: url('path/to/image.jpg') no-repeat left top;   height: 100px;   width: auto; } 

    What happens here is that the #masthead element will expand to the width of the #page element, which will be somewhere between 800px and 1600px wide (inclusive) depending on how wide the browser window is. When the #page element is 800px wide, you see only the left-most 800px of the skyline; when it’s 1600px wide, you see the entire skyline. That way your logo is always visible and when the browser is resized, more of the cityscape is revealed.

    This does require having a larger image to start with (at least as wide as your max-width, if you go elastic), but the result is a masthead that will look good no matter what size it is–without relying on, as strager mentioned, browsers’ image resizing algorithms.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 63k
  • Answers 63k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer If you want a non-interactive grid of items, you can… May 11, 2026 at 10:29 am
  • added an answer Another alternative: List<Action<Foo>> actions = new List<Action<Foo>> { doStuff1, doStuff2,… May 11, 2026 at 10:29 am
  • added an answer I'm looking at my copy of The LaTeX Companion, p.129,… May 11, 2026 at 10:29 am

Related Questions

My question revolves around CSS Fixed Layout vs a Float Layout that extends to
My question concerns c# and how to access Static members ... Well I don't
My question is related to the command pattern, where we have the following abstraction
My question is simple; is it possible to over object-orient your code? How much
My question is pertaining to the best practice for accessing a child object's parent.
My question about the reconfiguration delay when switching between Access 2003 and 2007 the
My question is pretty straightforward: You are an executable file that outputs Access granted
My question is on the ASP.NET GridView control. I am using a CommandField in
My question is possibly a subtle one: Web services - are they extensions of
My question is the following. I have xml that is versioned by a namespace.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.