Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Floating a link to the right whilst within a <p>
Old 09-09-2010, 10:26 AM Floating a link to the right whilst within a <p>
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
Here is a page from a website that I am currently building:
http://bit.ly/8XQniQ

See in the left hand column there are 'read more' links within the paragraph. These are styled simply with:
Code:
float:right;
text-decoration:none;
However in IE 6 and 7 it does not display properly. The read more link is knocked onto a new line, I need it to be on the same line as the final line on the paragraph (provided it has room to fit in that is).

I was thinking of adding some code to my IE-specific stylesheet by positioning it relative and moving it up 10 or so pixels. But depending on how long the last line of text was within the paragraph, the link may overlap it.

Does anybody have any ideas how I can fix this in IE?

Thanks.
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
 
Register now for full access!
Old 09-09-2010, 11:09 AM Re: Floating a link to the right whilst within a <p>
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,376
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
don't have IE7 to test with, but try adding display:inline to the rule
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-10-2010, 04:30 AM Re: Floating a link to the right whilst within a <p>
pealo86's Avatar
Super Spam Talker

Posts: 876
Name: Matt Pealing
Location: England, north west
Trades: 0
Thanks but that doesn't seem to work

Seems like the only way I can get it to look right in IE is by adding the read more link a few words before the end of the sentence. But then it looks wrong in other browsers, and obviously makes the code a bit messy!

I think it's just something to do with it being on the last line of the paragraph that IE doesn't seem to like.
__________________

Please login or register to view this content. Registration is FREE
pealo86 is offline
Reply With Quote
View Public Profile Visit pealo86's homepage!
 
Old 09-10-2010, 12:34 PM Re: Floating a link to the right whilst within a <p>
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
I think the problem you are going to run into is trying to place that read more link every time without the lead in text affecting it. What if the last line of the lead in text runs to the edge? Then the read more link will be pushed to the next line anyway. If you positioned the read more absolutely in the bottom right area of just the paragraph area, then you might overlap the last part of the lead in content.

If it were me, I'd stick with a normal document flow rather than trying to position things so exactly. Especially if you will be converting this to wordpress(?) or other CMS where you really can't control that lead in text cut-off since it is dynamic.

Perhaps float the image right AND the read more link right so that it sits right under the image in the for right corner of the divide div? Or divide each listing area into 2 halves so the paragraphs stay left and the image and read more link stay right.

One more suggestion, I'd make the image and the title a link.

Just my opinion.
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Reply     « Reply to Floating a link to the right whilst within a <p>
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.04329 seconds with 12 queries