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
Center this image?
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="Stalin" data-source="post: 233516" data-attributes="member: 36683"><p>Hey DevBest.</p><p>I've had a major blank and now I'm confused. I have an image that I'm trying to center horizontally and this is what I have it as so far; <a href="http://prntscr.com/1rs53h" target="_blank">http://prntscr.com/1rs53h</a></p><p></p><p>This is the code I currently have:</p><p>[CODE].navbar{</p><p> background-color:white;</p><p> height:100px;</p><p> border-bottom: 2px solid #CECECE;</p><p>}</p><p></p><p>#logo{</p><p> background-image: url('/img/exophyte.png');</p><p> background-repeat: no-repeat;</p><p> height:75px;</p><p>}[/CODE]</p><p></p><p>Whenever I try using margin-top on the logo ID, it does this; <a href="http://prntscr.com/1rs5b7" target="_blank">http://prntscr.com/1rs5b7</a></p><p>Anyone have any ideas on how I can fix this so that the navbar stays in its position?</p><p>Thanks.</p></blockquote><p></p>
[QUOTE="Stalin, post: 233516, member: 36683"] Hey DevBest. I've had a major blank and now I'm confused. I have an image that I'm trying to center horizontally and this is what I have it as so far; [URL]http://prntscr.com/1rs53h[/URL] This is the code I currently have: [CODE].navbar{ background-color:white; height:100px; border-bottom: 2px solid #CECECE; } #logo{ background-image: url('/img/exophyte.png'); background-repeat: no-repeat; height:75px; }[/CODE] Whenever I try using margin-top on the logo ID, it does this; [URL]http://prntscr.com/1rs5b7[/URL] Anyone have any ideas on how I can fix this so that the navbar stays in its position? Thanks. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
Center this image?
Top