PDA

View Full Version : checkbox/text alignment



twistedsoul
Sep 16th, 2009, 06:48 PM
hi, I have a small issue thats bothering me.

this is what I'm working on http://www.skylinedesigns.co.uk/blog/
the thing bothering me is the alignment with the "remember me" text next to my checkbox. And also does anyone know how to clear the text when I click in a field? thanks

ckeyrouz
Sep 16th, 2009, 07:07 PM
The point is you are using display:bloc which will definitely put each element on a new line.

I just modified the css rule innput.checkbox by adding the display:inline only for it.
like this:

input.checkbox {
display:inline;
height:auto;
width:auto;
}

twistedsoul
Sep 16th, 2009, 07:18 PM
worked a treat, so simple thanks :)

btw any ideas on the text clearing when I click the input field?

ckeyrouz
Sep 16th, 2009, 07:36 PM
It should be done using javascript.