Forum Moderators: not2easy

Message Too Old, No Replies

Display Question

Block display but I don't want a break after.

         

texignweb

1:13 am on Nov 9, 2005 (gmt 0)

10+ Year Member



Is there any way I can have a <span> or <a> etc that can both hold it's block attributes but not break afterwords. The style I am trying to use has a designating width and its defined in a <a>.

Robin_reala

7:48 am on Nov 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



span { display: inline-block; }

Unfortunately Firefox doesn't support this :( An alternative is to do this:

span { display: block; float:left; }

but then you run into all the usual float issues.

xfinx

9:21 am on Nov 9, 2005 (gmt 0)

10+ Year Member



something like this?
<span style="width: 300px;"><a href="" title="" style="display:block;">BLOCK</a></span><span style="width: 300px;"><a href="" title="" style="display:block;">BLOCK</a></span>

I think something like this will put the <a href..'s next to eachother

if that doesn't work, a width 100% might do the trick

Robin_reala

9:49 am on Nov 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



xfinx: as <span>s are inline elements by default you can't assign them a width.