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
CSS Is Being a bitch
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="Queef" data-source="post: 234497" data-attributes="member: 19889"><p>This is the html for my new template, it uses the same concept as my above post, floating the logo to the left and the navigation to the right.</p><p></p><p>Screen: <a href="http://prntscr.com/1slp2i" target="_blank">http://prntscr.com/1slp2i</a></p><p>[HTML] </p><p><div class="header"></p><p> <div class="nav-container"></p><p> <div class="logo"></p><p> <a href="#"><img src="images/logo2.png"></a></p><p> </div> </p><p> <ul></p><p> <li><a href="/vote">Vote for us</a></li></p><p> <li><a href="/faq">FAQ</a></li></p><p> <li><a href="/shop">Shop</a></li></p><p> <li><a href="/rules">Rules</a></li></p><p> <li><a href="/staff">Management</a></li></p><p> <li class="selected"><a href="#">Home</a></li></p><p> </ul> </p><p> </div></p><p> </div></p><p>[/HTML]</p><p></p><p>CSS For the container:</p><p>[CODE].nav-container { width: 800px; height: 52px;text-align:right;clear: both; font-size: 11px;}[/CODE]</p><p></p><p>Remember, this is just a container, make sure you keep the code for the actual header there and just insert your container inside the main header class.</p><p></p><p>Notes:</p><p>The 52px height in the container relates to the size of the background image used on the main header class.</p><p>Don't forget to give your logo a float:left; and navigation float:right;</p></blockquote><p></p>
[QUOTE="Queef, post: 234497, member: 19889"] This is the html for my new template, it uses the same concept as my above post, floating the logo to the left and the navigation to the right. Screen: [url]http://prntscr.com/1slp2i[/url] [HTML] <div class="header"> <div class="nav-container"> <div class="logo"> <a href="#"><img src="images/logo2.png"></a> </div> <ul> <li><a href="/vote">Vote for us</a></li> <li><a href="/faq">FAQ</a></li> <li><a href="/shop">Shop</a></li> <li><a href="/rules">Rules</a></li> <li><a href="/staff">Management</a></li> <li class="selected"><a href="#">Home</a></li> </ul> </div> </div> [/HTML] CSS For the container: [CODE].nav-container { width: 800px; height: 52px;text-align:right;clear: both; font-size: 11px;}[/CODE] Remember, this is just a container, make sure you keep the code for the actual header there and just insert your container inside the main header class. Notes: The 52px height in the container relates to the size of the background image used on the main header class. Don't forget to give your logo a float:left; and navigation float:right; [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
CSS Is Being a bitch
Top