Forums

Formatting validation errors

maxelcat 04 Mar, 2009
Hi

Where would I find the css that controls the postion of the text that appears when the user fails to enter something into a validating field?

Thanks

E
GreyHead 04 Mar, 2009
Hi maxelcat,

I'm not sure that there is any - add some css for the .validation-advice {. . .} selector

Bob
maxelcat 11 Mar, 2009
Hi

Tried adding that selector to the IE7, IE6 and general style sheets - didn't make any difference - am I editing the wrong file???

THanks
GreyHead 11 Mar, 2009
Hi maxelcat,

Should be OK, what are you putting in there?

Bob

PS FireFox with the FireBug extension will let you see exactly what you need to change.
maxelcat 11 Mar, 2009
Hi - thanks again - ah yes, firebug!

Using firegbug i found this:

<div id="advice-required-text_3" class="validation-advice" style="display: block; visibility: visible; opacity: 1;">This is a required field.</div>


and I added to my css

	
.validation-advice	{
	color:#FF0000;
	font-size:36px;
	font-weight:bold;
	}


and it made no difference - which is odd, becuase I would have thought that it would - even thought there is some inline styles, there is nothing within said inline styles that should overrise what I added?
GreyHead 11 Mar, 2009
Hi maxelcat,

I agree, it should work, sometimes you can get funny interactions with css files. Is the form on-line so I can take a look?

Bob
This topic is locked and no more replies can be posted.