Jump to content

Bootstrap conflict, universal selector issue


anderson_catchme

Recommended Posts

I have a boostrap conflict regarding box sizing. I solved it with a simple CSS rule:

  * {
            box-sizing: content-box;
            }

Now the problem is my bootstrap form isn't working. I need to make the box sizing apply to everything except the bootstrap form:

<form id="contactForm" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES); ?>" method='post'>

<!-- HTML HERE -->

</form>

Any ideas? Thanks.

 

Not completely sure what you're talking about here but I will do my best to help you out.
 

.UNIQUE { 
  box-sizing: content-box;}

You could always just create a div and title it something completely "Unique" that won't be used anywhere else and then work it into your css as intended.
 

<div class="unqiue"> 
<form id="contactForm" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES); ?>" method='post'>


<!-- HTML HERE -->


</form>
</div>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.