Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-27-2013, 06:37 PM   PM User | #1
phpchick
New Coder

 
Join Date: May 2011
Location: new york
Posts: 90
Thanks: 4
Thanked 0 Times in 0 Posts
phpchick is an unknown quantity at this point
agh, super easy, elements not on same line

<div class="breakinglinks"><span class="carrotrt"> >> </span>
<a class="linkinsidedropdown" href="">Harley Davidson 2013 outlook expected to be above analyst consensus</a>
</div>



CSS


span.carrotrt {
color:darkred;
padding-right:5px;
text-decoration:none;
}

div.breakinglinks{
display:inline;
padding:5px 0 0 5px;
}



The above ends up like
>>
Harley Davidson 2013 outlook expected to be above analyst consensus



where as im trying to have it on the same line

>> Harley Davidson 2013 outlook expected to be above analyst consensus
phpchick is offline   Reply With Quote
Old 01-27-2013, 07:54 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello phpchick,
The snippet you've provided doesn't reproduce the problem you're having, the arrows and anchor all display on one line.
Maybe your .breakinglinks inherits a width from something we aren't seeing?
Maybe a reset somewhere changing your anchors to block level?
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:12 AM.


Advertisement
Log in to turn off these ads.