A
A
amikolyk2015-03-20 09:58:16
css
amikolyk, 2015-03-20 09:58:16

How to limit css action on page?

I have a style.css where my styles are described and everything suits me.
But if I connect any framework (foundation.css), then partially the styles of tables and text are taken from the framework.
Is it possible to restrict css to a specific container?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
titronium, 2015-03-20
@amikolyk

1) The framework is connected (foundation.css)
2) Your style.css is connected
In your style.css, redefine what you need.

A
Alexey, 2015-03-20
@azovl

1) Redefine CSS
Alternatively, don't forget !important
For example:

p {
    background: url(images/tune1.png) no-repeat !important;
}

2) Javascript (JQuery) override style, after loading the entire document.
$(document).ready(function() {
     	$('#celebs tbody tr:even').css('background-color','#dddddd');
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question