| Author |
Message |
pan Involved


Joined: Jul 25, 2006 Posts: 354
|
Posted:
Sun May 17, 2009 8:11 pm |
|
Whenever I try to post images in blocks, or in content, the image border never shows up.
I tried changing img {border-style: none } but that just made every single image on the site have a border around them.
Why does the border="1" get stripped from images posted in blocks and content section?
I am using fisubice theme. |
Last edited by pan on Tue Jun 16, 2009 5:29 pm; edited 2 times in total |
|
|
 |
spasticdonkey RavenNuke(tm) Development Team

Joined: Dec 02, 2006 Posts: 1251 Location: Texas, USA
|
Posted:
Sun May 17, 2009 10:10 pm |
|
you could create another class to use for bordered images, for example
.someclass {border-style: outset; border-width: 1px; border-color: #000000 }
usage
<img class="someclass" src="myimage.gif" />
if you are using a decent browser it will ignore border=1 on an image if it has already been defined via css to not have a border. |
|
|
|
 |
pan Involved


Joined: Jul 25, 2006 Posts: 354
|
Posted:
Sun May 17, 2009 11:22 pm |
|
Well how to I tell css to stop stripping my images in Content and Blocks of the border="1"
? |
|
|
|
 |
spasticdonkey RavenNuke(tm) Development Team

Joined: Dec 02, 2006 Posts: 1251 Location: Texas, USA
|
Posted:
Mon May 18, 2009 3:37 am |
|
add to themes/fisubice/style/style.css
.someclass {border-style: outset; border-width: 1px; border-color: #000000 }
and any image you want a border on, add the class...
<img class="someclass" src="myimage.gif" />
you could remove the
img {border-style: none }
but that will cause other problems and is likely not worth it |
|
|
|
 |
pan Involved


Joined: Jul 25, 2006 Posts: 354
|
Posted:
Mon May 18, 2009 5:07 pm |
|
Thanks
That workaround fixed the issue. |
|
|
|
 |
|
|
|
|