Sunday, 15 July 2012

html - Avoid line breaking when using :before in CSS-formatted links -



html - Avoid line breaking when using :before in CSS-formatted links -

i prepend images links on website using :before in css

a.ext:before { content: url(./_img/ext.png); }

unfortunately happens, image , text separated, if not much space.

vs.

it great, if image bound first word in link (in html i'd utilize   that). similar possible in css?

edit:

if understand question trying not allow image wrap under text if element not wide plenty hold them.

a combination of overflow , white-space:nowrap might results looking for.

html css line-breaks

No comments:

Post a Comment