PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

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

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: 1364
Location: Texas, USA

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

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
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

PostPosted: Sun May 17, 2009 11:22 pm Reply with quote Back to top

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

?
View user's profile Send private message
spasticdonkey
RavenNuke(tm) Development Team


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

PostPosted: Mon May 18, 2009 3:37 am Reply with quote Back to top

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
View user's profile Send private message
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

PostPosted: Mon May 18, 2009 5:07 pm Reply with quote Back to top

Thanks

That workaround fixed the issue.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum