CSS Div Width
-
Hello,
I have a div that I like to use on occasion to highlight text. You can see examples here (the grey boxes at the start of the posts):
https://www.leavingworkbehind.com/my-first-niche-site-update-9-a-fresh-approach/
https://www.leavingworkbehind.com/8-ways-to-survive-your-day-job/How can I make it so that the boxes do not wrap behind the image (as in the first link), but also stretch to fill the width of the post, depending on the circumstances?
This is the code I use at the moment:
.lwb_tweetme { width: auto; border: 1px solid #dbdbdb; background-color: #f5f5f5; padding: 10px; font-weight: bold; }
Thanks in advance!
Tom
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘CSS Div Width’ is closed to new replies.