Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help
Author Message
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

PostPosted: Sun May 17, 2009 8:11 pm Reply with quote

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 
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team


Joined: Dec 02, 2006
Posts: 1692
Location: Texas, USA

PostPosted: Sun May 17, 2009 10:10 pm Reply with quote

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.
 
View user's profile Send private message Visit poster's website
pan
PostPosted: Sun May 17, 2009 11:22 pm Reply with quote

Well how to I tell css to stop stripping my images in Content and Blocks of the border="1"

?
 
spasticdonkey
PostPosted: Mon May 18, 2009 3:37 am Reply with quote

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
PostPosted: Mon May 18, 2009 5:07 pm Reply with quote

Thanks

That workaround fixed the issue.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Post Installation Help

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©