|
| |
|
|
yogaboy
Posts: 377 Joined: 5/22/2004 Status: offline
|
hyperlink wrapping - 9/14/2005 12:21:01
Anyone know a quick way to make sure hyperlinks wrap when they hit the edges of the containing element? I have a page with a div set to 36% width, the div contains several fieldsets which contain paragraphs with links. On FF the links continue over the edge of the fieldset and div. On the other hand, IE resizes the fieldset to be wide enough to contain the link.
|
|
|
|
Tailslide
Posts: 6003 Joined: 5/10/2005 From: Out here on the raggedy edge Status: offline
|
RE: hyperlink wrapping - 9/14/2005 13:14:41
Iain - to my knowledge you can't force this with CSS. Your choices would look like either removing a width from the fieldset. Getting rid of the fieldset and maybe using a list instead? Using PHP to shorten the URLs or add ellipsis at the end of the line. You can give the links within the fieldset a class that floats them or make them block level so they go to the next line but that's not much use if they're longer than a single line. Edit: Iain - where exactly is this causing a problem? Do you have to have the actual URL visible - because if you can just have the link text then you're fine - it's only when you've got no spaces that you get a problem (like with the url itself).
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
|
|
yogaboy
Posts: 377 Joined: 5/22/2004 Status: offline
|
RE: hyperlink wrapping - 9/14/2005 13:25:09
Ok, thanks for the help, I will try to find a way to shorten the links!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|