Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jan 17, 2011 2:04 am 
Offline
Junior Member

Joined: Mon Apr 26, 2010 12:20 am
Posts: 22
Website: http://www.halloforigin.com
Alright, so I've tried virtually everything in the book, from margins to floating to block display, and nothing's worked. This is my code:

Code:
<div class="container">
  <div class="content">
    <img src="./ZOW.png" alt="zow" /><br /><br />
    <br />
    <div class="nav"><a href="#">&nbsp;Home&nbsp;</a><a href="#">&nbsp;About&nbsp;</a><a href="#">&nbsp;Gallery&nbsp;</a><a href="#">&nbsp;Help&nbsp;</a><a href="#">&nbsp;Contact&nbsp;</a></div>
    <img src="./white.png" alt-"white" width="100%" height="2px" />
  <!-- end .content --></div>
<!-- end .container --></div>


I've tried a slew of things to no avail, though. Any help on this one?


Last edited by Zowayixx on Mon Jan 17, 2011 3:53 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Mon Jan 17, 2011 2:39 am 
Offline
Senior Member

Joined: Sat Nov 13, 2010 3:05 am
Posts: 91
Website: http://www.graq.co.uk
There is ambiguity.


Top
   
 Post subject:
PostPosted: Mon Jan 17, 2011 2:43 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
What exactly are you trying to do and what's the problem?

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Mon Jan 17, 2011 9:04 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
Have you tried changing the

src="./ZOW.png"

to

src="ZOW.png"

without the leading "./"?

James


Top
   
 Post subject:
PostPosted: Mon Jan 17, 2011 2:05 pm 
Offline
Junior Member

Joined: Mon Apr 26, 2010 12:20 am
Posts: 22
Website: http://www.halloforigin.com
No, I have not tried changing the img src, but it'd seem irrelevant in this case. I should've put up a page of what I'm trying to accomplish, and it's now up here. I'm wanting the navigation tabs, when hovered over, to connect with the white on the bar below it, but there's an odd space in the way. Any further help on this?


Top
   
 Post subject:
PostPosted: Mon Jan 17, 2011 3:15 pm 
Offline
Linode Staff
User avatar

Joined: Sat Jun 21, 2003 2:21 pm
Posts: 160
Location: Absecon, NJ
Anchors, by default, are inline elements so their borders collapse differently. The simple fix is to add:

Code:
.nav a {
    display: inline-block;
}


In the couple of browsers I tested quickly, that appears to achieve the result you're going for. You can also make them 'display: block;', but then you need to float them.

-James


Top
   
 Post subject:
PostPosted: Mon Jan 17, 2011 3:53 pm 
Offline
Junior Member

Joined: Mon Apr 26, 2010 12:20 am
Posts: 22
Website: http://www.halloforigin.com
Ah, thank you very much irgeek, that worked perfectly! I'll keep that in mind for next time this happens.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group