Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By jauzah on
there are 2 css files (default.css in core and style.css in my theme)
in default.css there is:
img {
border: none 0;
}
the thing is, that i need to make the image border appear
<img src="image.jpg" border="5" alt="image" />
i tried to use border: auto; but it doesn't work
is there any way how to override the default.css?
Comments
Dangerous, but ...
... you could try something like:
Normally when you redefine a css tag the rule specified last takes precedence, not so if you use the !important tag so use it sparingly. Also be aware that IE6 won't even pay attention to it (this can be a good thing or a bad thing depending on your situation).
The stylesheet that is
The stylesheet that is imported last takes precedence over any stylesheets imported before is. So go to your stylesheet that is imported later (be it "default.css" or "style.css") and put the following in there:
If you do that you don't need the !important rule.
------------------------
www.opstijgendenevel.nl
www.opstijgendenevel.nl
The thing was, that i needed
The thing was, that i needed to be able to show borders of different widths according to tinymce input. I solved this by jQuery definitely.
________________________
Michal Rehak - Drupal Developer | Portfolio