TwelvestoneFront End

giving span, or any inline element, a line break?


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
creepylurker
 
2011-07-15

Anybody know a trick. Display:block will not work as that clears both sides and there is content to the left

DontBogartMe
 
2011-07-15

not sure what you're trying to achieve?

creepylurker
 
2011-07-15

Getting and inline element to clear right

wowbagger[tip]
 
2011-07-15

Guess you don't mean: selector { clear:right; } ?

Got an example ?

Tha.Riddla
 
2011-07-15

I messed around with this for a while, and I'm assuming the issue is your span/em/whatever is INSIDE a tag, right? The closest I was able to get was giving your tag a padding-right. The issue is that if you have a padding that extends beyond your parent's width it puts the whole element on its own line.

I even tried using the pseudo-element :after to produce a line-feed but that didn't work either.

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFront End

giving span, or any inline element, a line break?