Wednesday, 15 January 2014

css - Is it ok to use the universal selector in bootstrap 3.1? -



css - Is it ok to use the universal selector in bootstrap 3.1? -

i working lot position absolute , don't want set position relative on parent of each dom element every single time. skip use

body *{ position:relative; }

but don't know if thought or if break in bootstrap.

can help me on this? or tell me if there improve way this?

yes, can utilize universal selector, suggest not utilize it(*). instead utilize selector in more appropriate way like:

.relative { position: relative; }

and, give parent element class="relative".

this way, can position required elements, , may increment web-page performance.

css css3 twitter-bootstrap-3

No comments:

Post a Comment