miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

apply styles to the images

Author jmcwebtrip
Registered
#1 | Posted: 30 Mar 2012 17:09 
I want to apply styles to the images of forums with a box. I have in the file. Css
as follows:
img.d {
border : 1px solid #ccc;
padding : 5px;
background : #fff;
}
If I put
[imgs=photo.jpg class="d"][/imgs][imgs=http://www.minibb.com/forums/img/p.gif][/imgs]
How I can do?
[imgs=http://www.minibb.com/forums/img/p.gif][/imgs]

Author tom322
Registered
#2 | Posted: 31 Mar 2012 00:08 
You should do it using encode/decode functions, not via direct CSS.

Author Paul
Lead Developer
#3 | Posted: 31 Mar 2012 11:08 
I would ask at first - why would you need it at all?
Implementation method depends on the reason of it.

Tom is right, you must apply all stylings, modifying BB codes functions (bb_codes.php).
You can't put them like you mention above.

Author jmcwebtrip
Registered
#4 | Posted: 31 Mar 2012 12:51 
I need to put it so, not that it is imperative. But I want to add a forum section of a photo of the week. I think the design is much better with a border on the picture.

Author tom322
Registered
#5 | Posted: 31 Mar 2012 21:59 
You can add this in your bb_default_style.css file:

.postedText img{border : 1px solid #ccc;padding :5px;background: #fff;}

Author jmcwebtrip
Registered
#6 | Posted: 1 Apr 2012 00:21 
Thank very much for your reply tom. Now is working fine.

Specific miniBB Support Forums / Specific / apply styles to the images Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB