CSS issues: where's "user agent stylesheet"?

6 years 4 months ago - 6 years 4 months ago #107259 by blacknail
Hello all,

I'm editing the sherpa template, but now I'm facing some problems. I need to change some font sizes / margins, and when inspecting the elements with Chrome, I can't locate some of the styles in it. For instance, in the attached example (in the right, inside the red round rectangle), I can't seem to find the style for the <h3> heading in the template.css file. Where can it possible be? Since it has a reference to "user agent stylesheet" it must be somewhere else, but I can't find out where. I've edited a lot of styles before in template.css, but now I can't seem to advance. I've also searched in other files and wasn't also able to find it there either.

Thanks a lot for your time, any help will be valuable.

Last edit: 6 years 4 months ago by blacknail.
The topic has been locked.
LimeSurvey Partners
6 years 4 months ago #107271 by pietpomp
Hi Blacknail,

'user agent stylesheet' is the browser(user-agent) fall-back. They may actually differ from browser to browser. You can think of it as the particular browsers 'defaults'. This is why you'll come across CSS-reset stylesheets ~ to get it as close as possible across various browsers.

If you added(set) a h3 in your CSS, you'll see it being used instead of the 'defaults'. This will explain why your search wouldn't find any either.

Hope that helps
The following user(s) said Thank You: blacknail
The topic has been locked.
6 years 4 months ago #107276 by DenisChenu
An h3 inside a table ?

Strange ....

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
The topic has been locked.
6 years 4 months ago #107324 by blacknail
Thanks for all the answers, I solved my problems by overriding the style in the template.css file (cache was preventing me from seeing the changes...). Also changed <h3> to <p>, Denis, I agree it can make more sense ;]
The topic has been locked.

Start now!

Just create your account and start using Limesurvey today.

Register now