Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

css in admin section issues <hr /> and img borders


Go to End


1579 Views

Avatar
TF-35Lightning

Community Member, 137 Posts

31 March 2010 at 9:01pm

Hi all,

I am suffering css issues in the admin. The CSS is runs fine on the live site its just I don't seem to be able to replicate what I won't in the admin section.

Yes I have typography.css and editor.css that apparently is in control of such things.

My fonts are working appropriatley its just my horizontal rulers <HR> and borders around images that is giving me grief.
I have tried going in via Firebug into the admin to view the code but I don't seem to be able to find the <hr /> tags when I go in.

For my HR I have
.typography hr {
/* padding:5px; */
}

and my img (under layout.css)

img {
vertical-align:top;
}

Borders show up on images in the admin but then they don't show up up on the live site.

Obviously I have a css conflict or other elements overriding these ones, I'm not sure what to do now though.

Any help would be great