Solved

css layout

Posted on 2014-04-05
3
307 Views
Last Modified: 2014-04-11
I have the following html (see below) and the result is not what I am looking for. The #nav and #search are below the #logo and not next to #logo.

Please see pic for what I am looking for.
final result

 
 <div id="header">
        <div id="logo"></div>
        <div id="search">search</div>
        <div id="nav">
            <ul>
                <il><a href="">home</a></il>
                <il><a href="">home</a></il>
                <il><a href="">home</a></il>
                <il><a href="">home</a></il>
                <il><a href="">home</a></il>
            </ul>
        </div>
    </div>

Open in new window


and css code:
#logo {
	width: 280px;
	height: 100px;
	background-image:url(images/logo.jpg)
}
#search {
	float:right;}
	
#nav {
	width: 680px;
	text-align:center;
}

Open in new window

0
Comment
Question by:leblanc
[X]
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
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 500 total points
ID: 39980206
Try adding float:left to the logo.  The EOL at the end of the logo div forces the rest of the content to start on the next line.

If that does not solve it then post a link to the page so we can do diagnostics.

Cd&
0
 
LVL 1

Author Comment

by:leblanc
ID: 39980215
It works. But now I have #nav and #search. I'd like #search to be on top and #nav at the bottom. Thx
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39980251
So I guess you are assuming that I can see across the internet into you mind and determine what it looks like without a link or any other hint.  Nope, I do not have telepathic capabilities.  I need specifics.

Cd&
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

734 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