Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
[HTML/CSS] Logo in Middle of Navigation
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="IntactDev" data-source="post: 193835" data-attributes="member: 24757"><p>So here is my attempt:</p><p> </p><p><img src="http://img.ctrlv.in.s3.amazonaws.com/img/515cf3646b0e5.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p> </p><p>I want the logo in the middle of the top navigation bar, and I want the words in the middle of the navigation bar. Here is my CSS:</p><p> </p><p>[CODE]body {</p><p> margin: 0;</p><p> padding: 0;</p><p> background: url('../images/background.gif') repeat;</p><p>}</p><p> </p><p>a {</p><p> text-decoration: none;</p><p> color: #181818;</p><p>}</p><p> </p><p>li {</p><p> list-style: none;</p><p> margin: 0;</p><p> padding: 0;</p><p>}</p><p> </p><p>.navigationShell {</p><p> width: 100%;</p><p> height: 60px;</p><p> background: #28AE9A;</p><p> border-bottom: 1px black solid;</p><p> position: fixed;</p><p>}</p><p> </p><p>.navigation {</p><p> padding: 18px 7px 5px 15px;</p><p>}</p><p> </p><p>.navigation li {</p><p> height: 10px;</p><p> width: 100%;</p><p> display: inline;</p><p>}</p><p> </p><p>.navigationItem {</p><p> padding-right: 25px;</p><p> text-transform: capitalize;</p><p>}</p><p> </p><p>.navigationItem #first {</p><p> </p><p>}</p><p> </p><p>#right {</p><p> float: right;</p><p>}[/CODE]</p><p> </p><p>Here is my HTML:</p><p> </p><p>[HTML]<html></p><p> <head></p><p> <title>TopHostr: Images are Priceless</title></p><p> <link href='css/style.css' rel='stylesheet' type='text/css'></p><p> </head></p><p> </p><p> <body></p><p> <div class='navigationShell'></p><p> </p><p> <div class='navigation'></p><p> <ul></p><p> <li class='navigationItem'></p><p> <a href='index' onClick='return false;'>Home</a></p><p> </li></p><p> <li class='navigationItem'></p><p> <a href='index' onClick='return false;'>Home</a></p><p> </li></p><p> <li class='navigationItem'></p><p> <a href='index' onClick='return false;'>Home</a></p><p> </li></p><p> <li class='navigationLogo'></p><p> <img src='images/logo.png' width='450' height='300'></p><p> </li></p><p> <li class='navigationItem'></p><p> <a href='index' onClick='return false;'>Home</a></p><p> </li></p><p> <li class='navigationItem'></p><p> <a href='index' onClick='return false;'>Home</a></p><p> </li></p><p> <li class='navigationItem'></p><p> <a href='index' onClick='return false;'>Home</a></p><p> </li></p><p> </ul></p><p> </div></p><p> <div class='navigation' id='right'></p><p> </p><p> </div></p><p> </p><p> </p><p> </div></p><p> </body></p><p> </p><p> <footer></p><p> </footer></p><p></html>[/HTML]</p><p> </p><p>Thanks for the help... This is my first time attempting this, so thanks for baring with me.</p><p> </p><p>- IntactDev</p></blockquote><p></p>
[QUOTE="IntactDev, post: 193835, member: 24757"] So here is my attempt: [IMG]http://img.ctrlv.in.s3.amazonaws.com/img/515cf3646b0e5.jpg[/IMG] I want the logo in the middle of the top navigation bar, and I want the words in the middle of the navigation bar. Here is my CSS: [CODE]body { margin: 0; padding: 0; background: url('../images/background.gif') repeat; } a { text-decoration: none; color: #181818; } li { list-style: none; margin: 0; padding: 0; } .navigationShell { width: 100%; height: 60px; background: #28AE9A; border-bottom: 1px black solid; position: fixed; } .navigation { padding: 18px 7px 5px 15px; } .navigation li { height: 10px; width: 100%; display: inline; } .navigationItem { padding-right: 25px; text-transform: capitalize; } .navigationItem #first { } #right { float: right; }[/CODE] Here is my HTML: [HTML]<html> <head> <title>TopHostr: Images are Priceless</title> <link href='css/style.css' rel='stylesheet' type='text/css'> </head> <body> <div class='navigationShell'> <div class='navigation'> <ul> <li class='navigationItem'> <a href='index' onClick='return false;'>Home</a> </li> <li class='navigationItem'> <a href='index' onClick='return false;'>Home</a> </li> <li class='navigationItem'> <a href='index' onClick='return false;'>Home</a> </li> <li class='navigationLogo'> <img src='images/logo.png' width='450' height='300'> </li> <li class='navigationItem'> <a href='index' onClick='return false;'>Home</a> </li> <li class='navigationItem'> <a href='index' onClick='return false;'>Home</a> </li> <li class='navigationItem'> <a href='index' onClick='return false;'>Home</a> </li> </ul> </div> <div class='navigation' id='right'> </div> </div> </body> <footer> </footer> </html>[/HTML] Thanks for the help... This is my first time attempting this, so thanks for baring with me. - IntactDev [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
[HTML/CSS] Logo in Middle of Navigation
Top