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 9255861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:48:18+00:00 2026-06-18T11:48:18+00:00

i got an html structure as below, <div id=page-wrap> <header> <div id=logo> </div> <nav>

  • 0

i got an html structure as below,

<div id="page-wrap">
    <header>
        <div id="logo">
        </div>
        <nav>
            <ul>
                <li><a href="">text 1</a><li>
                <li><a href="">text 2</a></li>
                <li><a href="">text 3</a></li>
            </ul>
        </nav>
    </heder>

    <div id="main-content">
        <h1>Some Heading</h1>
        <p>Some Text</p>
        <div>A div</div>
    </div> <!-- end of main-content -->
</div> <!-- end of page-wrap -->

with css

#page-wrap {
max-width:850px;
top:0;
bottom:0;
height:100%;
margin: 0 auto;
} 

header {
padding: 80px 0px 0px 0px ;
position: relative;
}

#logo {
position: absolute;
left:0;
width:123px;
height:122px;
background:transparent url(../images/logo.png) no-repeat;
}

header nav {
position: absolute;
right:0;
}

header nav ul {

}

header nav ul li {
display:inline;
list-style: none;
}

as above.. the main-content div overlaps the header >.< please suggest propper css for getting main-content have an 80px distance from bottom of the header.. (there is a logo with 122px height on the header)

  • 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-18T11:48:19+00:00Added an answer on June 18, 2026 at 11:48 am

    HTML

    <div id="page-wrap">
        <header>
            <div id="logo"> </div>
    
            <nav>
                <ul>
                    <li><a href="">text 1</a><li>
                    <li><a href="">text 2</a></li>
                    <li><a href="">text 3</a></li>
                </ul>
                <div class="clear"> </div>
            </nav>
            <div class="clear"> </div>
        </header>
    
        <div class="clear"> </div>
    
        <div id="main-content">
            <h1>Some Heading</h1>
            <p>Some Text</p>
            <div>A div</div>
        </div> <!-- end of main-content -->
    </div> <!-- end of page-wrap -->
    

    CSS:

    html, body {
        height: 100%;
    }
    
    #page-wrap {
        max-width:850px;
        height:100%;
        margin: 0 auto;
    } 
    
    header {
        margin: 80px 0 0 0;
    }
    
    #logo {
        width:123px;
        height:122px;
        background: url("../images/logo.png") no-repeat;
        float: left;
    }
    
    header nav {
        float: right;
    }
    
    header nav ul {
    
    }
    
    header nav ul li {
        display:inline;
        list-style: none;
    }
    #main-content {
     margin: 80px 0 0 0;
    }
    
    .clear {
        clear: both;
    }
    

    Look up CSS clear: both, and you’ll understand why I used clear.

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

Sidebar

Related Questions

I got the following HTML structure: <div id=main-container> <div id=left-column>...</div> <div id=right-column>...</div> </div> My
I've got a html-structure like this: <div class=campain> <div class=campainText> <a href=#><h2>Ny app til
I have the following HTML structure <div class=store><a href=#>GERMANY</a></div> <div class=store_details> <p>Stores in Germany</p>
I've got following html structure: <div style=width:100%> <div style=float:left; width:70%><input /></div> <div style=float:left>element with
I have a following problem here: in my html structure I got some div's
I have the following html structure: <div class=divClass> <a class=aClass href=#> <img src=xxxx.jpg <span
I've got this structure: <div id=source1> <iframe src=foo.html></iframe> </div> <div id=source2> <iframe src=foo.html></iframe> </div>
I have the following html page structure: <div class=result-row clearfix> <span>Name1</span> <span>city1</span> <span>phone1</span> <span>details1</span>
It's a really simple problem. I've got HTML code like this : <div> <img
I got a HTML page where it contain an iFrame, within the iFrame I

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.