The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
HTML / CSS Help
Hi all,
I've currently got a <div> with a dashed border which holds my content. Inside the content, there are 2 links - Edit and Delete - currently, they sit within the <div> like: However, I'd like them to appear on the border, like: Any ideas? The current html (abbreviated) is: Code:
<div style="border:dashed 1px #666666; margin-bottom:10px"> ...content... <div style="float:right; padding:4px; font-size:9px"> [Edit] - [Delete] </div> ...more content... </div> Alan. |
#2
|
||||
|
||||
I gave you a suggestion in irc. I also think you might be able to fudge where it is with some relitive positioing possibly.
|
#3
|
|||
|
|||
I know, I posted this at the same time I asked you
I'm getting their with a fieldset at the moment, just doing some testing |
#4
|
||||
|
||||
try...
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- .box { border:dashed 1px #666666; margin:10px; padding:5px } .editdelete { font: 10px Verdana, Arial, Helvetica, sans-serif; color:red; background-color:#ffffff; margin:-2px 25px; padding:5px; float:right; } .editdelete a:link, .editdelete a:active, .editdelete a:hover { font: 10px Verdana, Arial, Helvetica, sans-serif; color:red; } .editdelete a:hover { color:blue; } --> </style> </head> <body> <div>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin quis sapien a nulla interdum placerat.</div> <div class="editdelete">[<a href="#">Edit</a>] - [<a href="#">Delete</a>]</div> <div class="box"> <div><a href="#">Test thread bookmark 1</a></div> <div>Last post by Alan @ CIT at 05-17-2006</div> <div>...more content...</div> </div> </body> </html> |
#5
|
|||
|
|||
Niceone, cheers mate
Thanks, Alan. |
#6
|
||||
|
||||
Can you show us whatcha ended up with Alan?
|
#7
|
|||
|
|||
I actually changed the design completely in the end
It now looks like: Thanks, Alan. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|