P
P
psylostlife2012-11-14 12:16:18
css
psylostlife, 2012-11-14 12:16:18

HTML5\CSS3 nav menu

Hello.

Here , under the logo, there are two items in the nav: “Home” and “Example Page”. They are made by ul-li list. What properties and what should be set so that they line up to the right of the logo (AcidChristStudio)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Kouznetsov, 2012-11-14
@unconnected

li{
display:inline-block;
}

D
Doktor_Gradus, 2012-11-14
@Doktor_Gradus

You can do it in 2 ways (maybe more, I offhand).
1. Set the div element id="inner-header" property float: left; and the nav element has a property float: right;

B
Battletoads, 2012-11-14
@Battletoads

probably the simplest
#inner-header {position: relative}
.menu { position: absolute; left: XXpx; top: XXpx; }
li {float:left}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question