467,161 Members | 1,129 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,161 developers. It's quick & easy.

Question with centering content with css

I have a <div> that is centered, and has a background image with no border. However the text is going outside of the <div> and will not stay inside of it. I tried to use [HTML]margin-left: -20px;[/HTML], but that did not work. So what can I do to make the text appear inside the divider.
Here is a screenshot:

Apr 7 '07 #1
  • viewed: 922
Share:
1 Reply
drhowarddrfine
Expert 4TB
Do you want a picture of the solution or the actual code. Without the complete html and css or, preferably, a link, we can only guess at a solution.
Apr 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

11 posts views Thread by Jeff Thies | last post: by
3 posts views Thread by Jonah Bishop | last post: by
9 posts views Thread by Pierre Jelenc | last post: by
3 posts views Thread by CMAR | last post: by
3 posts views Thread by yawnmoth | last post: by
3 posts views Thread by SamMan | last post: by
3 posts views Thread by John Pote | last post: by
5 posts views Thread by Markus Ernst | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.