Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

css layout

Posted on 2014-04-05
3
Medium Priority
?
330 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
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses

885 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