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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:12:35+00:00 2026-06-05T22:12:35+00:00

I want to set layout something like What i thought that i will have

  • 0

I want to set layout something like
Desire Layout

What i thought that i will have to set some thing like this

Scath

Means main div, and on the top of main div, i have other divs. I used something like this

<div id="headerImage" >

        <div id="help_About">               
            <a href="#">Help</a>
            <a href="#">About</a>                                           
        </div>

        <div id="myLogout">               
            <input type="text" value="Basit" />
            <a href="#">Logout</a>                                                          
        </div>

        <div id="myImage">
            <img width="20" height="20" src="resources/images/tools_icon.png" /> 
        </div>

        <img src="resources/images/2b.jpg"/>

    </div>

    #headerImage{ 
        border-style :solid;
        border-width: thin;
        width: 100%;
        height: 20%;           
        background: url(${imgUrl}/2b.jpg) no-repeat top left;            
        padding: 0px;
        border-top: 0px;
        border-bottom: 5px #eeeeee solid;
        z-index: 1;
    }

    #headerImage #help_About{ 
        margin-left: 10%
        margin-top: 2%;
        display: inline-block;
        border-style :solid;
        border-width: thin;                                 
        padding: 2px;
        border-top: 2px;
        z-index: 2;
    }

    #headerImage #myLogout{ 
        margin-left: 30%
        margin-top: 4%;
        display: inline-block;
        border-style :solid;
        border-width: thin;                                 
        padding: 2px;
        border-top: 2px;
        z-index: 2;
    }

    #headerImage #myImage{ 
        margin-right: 10%
        margin-top: 4%;
        display: inline-block;
        border-style :solid;
        border-width: thin;                                 
        padding: 2px;
        border-top: 2px;
        z-index: 2;
    }

I just gave the border style and width and height for physical appearance. But then i am getting something like this

enter image description here

what i am doing wrong? How can i set the layout of my divs?

Thanks

  • 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-05T22:12:37+00:00Added an answer on June 5, 2026 at 10:12 pm

    Try this – http://jsfiddle.net/SQwFK/

    HTML

    <header>
        <div id="left"></div>
    
        <div id="rightTop"></div>
        <div id="rightBottom"></div>
    </header>
    

    CSS

        header {
        background: url(http://lorempixel.com/600/300);
        height: 300px;
        width: 600px;
        position: relative;
    }
    
    #left {
        position: absolute;
        top: 100px;
        left: 50px;
        background: #ffe;
        height: 100px;
        width: 250px;
    }
    
    #rightTop, #rightBottom {
        position: absolute;
        right: 50px;
        top: 25px;
        background: #fef;
        height: 100px;
        width: 100px;
    }
    
    #rightBottom {
        top: 175px;
    }
    

    New EDIT
    —————————————————————————-

    Working

    <div id="headerImage" >
    ....
    </div>
    <div id="menuBodyContainer" >
        <div id="menu">
        </div>
        <div id="myBody">
        </div>  
    </div>
    

    Now i tried with your code like

      #headerImage{ 
            position: absolute;
            border-style :solid;
            border-width: thin;
            width: 100%;
            height: 20%;           
            background: url(${imgUrl}/2b.jpg) no-repeat top left;            
            padding: 0px;
            border-top: 0px;
            border-bottom: 5px #eeeeee solid;
            z-index: 1;            
        }
    
        #headerImage #help_About{ 
            position: absolute;
            display: inline-block;
            top: 4%;
            left: 4%;
            opacity:0.4;
            z-index: 2;            
        }
    
        #headerImage #myLogout{ 
            position: absolute;
            display: inline-block;
            right: 50px;
            top: 25px;
            z-index: 2;           
        }
    
        #headerImage #myImage{
            position: absolute;
            top: 2%;
            right: 2%;
            z-index: 2;           
        }
    

    This is working.

    enter image description here

    But i have another problem now. As you can see i set the #help_About and #myLogout {display:inline-block}. But #help_About making a big square. Also i want that the white square don’t show. It appears that the elements in the div are actually on the image. Same for #myLogout. I set display to inlne-block but they are appearing on two different lines, i want then inline and also it is showing white square as a background i don’t want it. How can i do it? If i set transparency then it set the transparency of whole div including elements not just div. tThanks

    Now what ?

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

Sidebar

Related Questions

I have an HTML page layout - something like this: <div id='header'> Header content
Is it possible to achieve something like this: I have one picture to set
In my main activity, I would like to have it set up, so that
I have a top-level _Layout.cshtml that looks something like this: <html> <head> @RenderSection(Header, required:
I am new to Sencha Touch 2 and I want to have something like:
I want to do something like this: .even { float: left; text-align: left; }
My question is : I have an EditText and I want set a margin
i have a problem, i want set text of a UILabel or UItextView or
I want to set a binding. The problem is that the target is of
I have a FlowDocument table where I want to spice up the layout a

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.