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
A few CSS questions
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="Weasel" data-source="post: 351873" data-attributes="member: 9520"><p>Assuming your nav and logo are in the same container (which is best practice) you could do this (this is an example of how you could do it, I've taken out all the styling stuff to make it simple for you):</p><p>[CODE]</p><p><div class="menu"></p><p><div></p><p><a href="index.php" class="logo"><img src="assets/images/logo-syntax.png" alt="Logo"></a></p><p></div></p><p><div class="menu-items"></p><p><a href="index.php">Home</a></p><p><a href="login.php">Login</a></p><p></div></p><p></div></p><p>[/CODE]</p><p></p><p>[CODE]</p><p>.menu {</p><p>box-sizing: border-box;</p><p>width: 100%;</p><p>height: 75px;</p><p>}</p><p></p><p>.menu a {</p><p>text-decoration: none;</p><p>padding-top: 30px;</p><p>padding-bottom: 30px;</p><p>padding-right: 15px;</p><p>padding-left: 15px;</p><p>float: left;</p><p>}</p><p>.logo {</p><p>padding-top: 14px !important;</p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Weasel, post: 351873, member: 9520"] Assuming your nav and logo are in the same container (which is best practice) you could do this (this is an example of how you could do it, I've taken out all the styling stuff to make it simple for you): [CODE] <div class="menu"> <div> <a href="index.php" class="logo"><img src="assets/images/logo-syntax.png" alt="Logo"></a> </div> <div class="menu-items"> <a href="index.php">Home</a> <a href="login.php">Login</a> </div> </div> [/CODE] [CODE] .menu { box-sizing: border-box; width: 100%; height: 75px; } .menu a { text-decoration: none; padding-top: 30px; padding-bottom: 30px; padding-right: 15px; padding-left: 15px; float: left; } .logo { padding-top: 14px !important; } [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
A few CSS questions
Top