Grow your CSS skills. Land your dream job.

Subdomain ignoring margins from linked stylesheet?

  • # February 11, 2013 at 12:12 pm

    Hey all! I am having a problem which I haven’t run into before. I am working on a site http://recruitingprocessanalytics.redbranchmedia.com and when a user clicks to log in, it redirects to a subdomain http://app.recruitingprocessanalytics.com/. The subdomain is using the stylesheet from the main site. The problem is, it’s ignoring some of the CSS rules, but not all of the them.

    For example, look at the h1 “Demo” on the subdomain in developer tools. It’s supposed to have a margin-top of 10px and I see it in developer tools, but it just isn’t adding the margin. I’m stumped. Any help is appreciated. Thanks!

    # February 11, 2013 at 2:26 pm

    I have the answer if anyone else runs into this. Apparently, the subdomain common.css file was changing the elements to inline. I added display:block and it works perfectly now.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".