So, I'm playing with an idea to add a wrench image next to some of the text in my site to edit that field. It all works great but I'm having some writers block on the CSS.
When I add just the text, it centers in the DIV and everything is duckie. When I add the wrench, it pushes the text over. I've thought about div sizing but that doesn't guarantee center text so that would be hard to do. What I'm thinking now is positioning the text so it's affected by the parent div and trying to position the image so it floats to the right of the centered text. Positioning however, is not my strong suit so I thought my colleagues here wouldn't mind giving me some feedback!
Here's what I have so far
Heres the text that I want centered
#UserName{
float: left;
width: 300px;
margin: 0 auto;
font-size: 14px;
font-weight: bold;
color: #000;
text-align: center;
}
I really don't have any CSS for the links/images here because I didn't need any formatting other than positioning (I don't think)
As always, thanks in advance!!

New Topic/Question
Reply



MultiQuote






|