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

  • SEARCH
  • Home
  • 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 8841569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:45:04+00:00 2026-06-14T10:45:04+00:00

Now, I’m a real beginner, just starting, figuring out things, testing and trying html

  • 0

Now, I’m a real beginner, just starting, figuring out things, testing and trying html and css. I want to make something more or less like this (see picture). I want it to fully scale to fit the browser/resolution preserving aspect ratio.

my layout

My html and css code is below. The background image scales fine but now I want my navigation to scale the same way. How to do it? What to change? I also want to have a dotted line under the solid one (above the navigation). Any advice? 🙂 Just starting/learning/making mistakes 🙂

<!doctype html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>My Layout</title>
        <link rel="stylesheet" type="text/css" href="style.css"/>
        </head>
        <body>
        <div id="navigation">
        <ul>
            <li> <a href="#"> HOME </a></li>
            <li> <a href="#"> O MNIE </a></li>
            <li> <a href="#"> PORTFOLIO </a></li>
            <li> <a href="#"> OFERTA </a></li>
            <li> <a href="#"> STREFA ŚLUBNA </a></li>
            <li> <a href="#"> PUBLIKACJE </a></li>
            <li> <a href="#"> WSPOŁPRACA </a></li>
            <li> <a href="#"> BACKSTAGE </a></li>
            <li> <a href="#"> KONTAKT </a></li>
    </ul>
    </div>
    </body>
</html>

And css:

html 
{ 
    background: url(images/bg.jpg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
#navigation
{
    width: 100%;
    height: 60px;
    background-color: black;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 0 0;
    position: absolute;
    bottom: 0px;
    border-top-style: solid;
    border-color: white;
    border-width: thin;
}
#navigation ul
{
    list-style-type: none;
    float: right;
    margin-left: auto;
    margin-right: auto;
}
#navigation ul li
{
    float: left;
    list-style: none;
    margin-left: 18px;
    margin-right: 18px;
}
#navigation li a
{
    color: #FFF; 
    text-decoration:none;
    font-family: "Calibri";
    text-transform:uppercase;
}

#navigation li a:hover
{
    text-decoration:none;
    color: #F69;
}
#navigation li a:active
{
    color: #F69;
}
  • 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. Editorial Team
    Editorial Team
    2026-06-14T10:45:06+00:00Added an answer on June 14, 2026 at 10:45 am

    You need to set any widths, heights, margins and paddings of the navigation elements to a percentage value. Maybe also set a percentage value to font-size. Just play around with numbers to see how thats affects your layout. In short, don’t use fixed pixel values for the layout. You may use them to style individual buttons or similar elements in the layout.

    BTW: Browser Support for background-size values contain and cover:

    • Chrome 3.0
    • Firefox (Gecko) 3.6 (1.9.2)
    • Internet Explorer 9.0
    • Opera 10.0
    • Safari (WebKit) 4.1 (532)

    (as stated at https://developer.mozilla.org/en-US/docs/CSS/background-size)

    To your dotted border: you could use a horizontally repeated background image for such a layout or you set a solid border to a wrapper-element and a dotted border to the inner navigation-element.

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

Sidebar

Related Questions

Now this is tricky. I am trying to do WAP testing using firefox and
Now i want to make filter but i really don't know how to do
Now that I've upgraded to Rails 3, I'm trying to figure out the proper
Now before you burn me at the stake hear me out! I want some
Now facebook require to have these options when you want to use bulit-in actions
Now I'm trying to display the result of consuming a webservice from one page
Now my app targets >iOS4 I am trying to remove dependencies on non Apple
Now I find ploblem again. I want get data in db to listview. but
Now I have learnt a little bit of assembler (using NASM) I want to
Now that Rails 3 is out, my favorite dev-mode plugin (rails-dev-boost) is broken. I'm

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.