WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Solved Navigation bar problem Thu Aug 16, 2012 3:02 am

whisper

whisper
Registered Member
Registered Member
Im trying to desing a simple nav bar but i have a problem

Navigation bar problem Problem3

CSS
Code:

body{
background:#FFF;
font-family:Tahoma;
}
#container{
border:1px solid white;
text-align:center;
margin:15px;
}
#nav {
width:570px;
height:50px;
padding:0px;
margin:0px auto;
border:1px solid white;
}
#nav ul{
list-style-type:none;
margin:0px;
padding:0px;
text-align:center;
}
#nav ul li {
width: 130px;
float:left;
margin:4px;
border:1px solid red;
}
#nav ul li a{
font-family: tahoma;
text-decoration:none;
display:block;
width:130px;
height:40px;
line-height:40px;
}

HTML
Code:
<html>
<head>
<title>Test</title>
  <link href="first.css" rel="stylesheet" type="text/css" media="screen"/>
 
    <body>
    <div id="container">
    <div id="nav">
    <ul>
    <li><a href="#">Pocetna<a/></li>
    <li><a href="#">Registracija<a/></li>
    <li><a href="#">O nama<a/></li>
    <li><a href="#">Kontakt<a/></li>
    </ul>
        </div>
              </div>
              </div>
        </body>
               



</head>
</html>

btw i use chrome browser. Pls help Smile

2Solved Re: Navigation bar problem Thu Aug 16, 2012 5:30 am

Mr.Joker

Mr.Joker
Mr. WebArtz
Mr. WebArtz
Code:
<html>
<head>
<title>Test</title>
<style type="text/css"  >
body{
background:#FFF;
font-family:Tahoma;
}
#container{
border:1px solid white;
text-align:center;
margin:15px;
}
#nav {
width:100%;
padding:0px;
list-style-type:none;
}
#nav li{
list-style-type:none;
margin:0px;
padding:20px;
text-align:center;
width: 150px;
float:left;
margin:4px;
border:1px solid #000000;
}
#nav li a {
text-decoration:none;
}
</style>
</head>
    <body>
    <ul id="nav">
    <li><a href="#">Pocetna<a/></li>
    <li><a href="#">Registracija<a/></li>
    <li><a href="#">O nama<a/></li>
    <li><a href="#">Kontakt<a/></li>
</ul>
        </body>
             
</html>

3Solved Re: Navigation bar problem Thu Aug 16, 2012 7:40 am

whisper

whisper
Registered Member
Registered Member
Done, thanks. Lock pls Smile

4Solved Re: Navigation bar problem Thu Aug 16, 2012 8:36 am

ankillien

ankillien
Administrator
Administrator
Solved | Locked

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum