Automatic align images and videos
3 posters
Page 1 of 1
Automatic align images and videos
Hello. I want this code that makes the images and the videos automatic align to center.
For example is i put a picture in the forum, without aligning it to the center, to go automatic to align center.. can i do that?
Vesion: Punbb
For example is i put a picture in the forum, without aligning it to the center, to go automatic to align center.. can i do that?
Vesion: Punbb
Last edited by Marios94 on Tue Nov 26, 2013 5:32 am; edited 1 time in total (Reason for editing : forgot vesion)
Re: Automatic align images and videos
You can do this however, this would affect the emoticons in your posts as they're images too.
CSS:
CSS:
- Code:
.postmain .postbody img{
display:block;
margin:0 auto;
}
Re: Automatic align images and videos
No i don't want that!
Forget the image... Can i do it for the video too? And if yes, how can i change the default border of youtube to something more beautiful?
Forget the image... Can i do it for the video too? And if yes, how can i change the default border of youtube to something more beautiful?
Re: Automatic align images and videos
This code you gave me, i added a border for the videos, but it took the border to the top 2014 counter...
Is there any way we can take it off?
I have this in the css for the counter..
Is there any way we can take it off?
I have this in the css for the counter..
- Code:
#noel_deco_swf{
position:absolute !important;
margin:33px 0px 0px 40px;
}
Re: Automatic align images and videos
My mistake try this to keep it to posts only:
- Code:
.postmain .postbody embed{
display:block;
margin:0 auto;
}
Re: Automatic align images and videos
ok i will try it in a bit cause it appears that something went wrong and my forum changed completely..
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Similar topics
» Align / Wrap images in posts?
» How to align rank images and text
» posting images and videos to a forum
» can i upload images and videos on my forum.....
» Automatic resize of the images
» How to align rank images and text
» posting images and videos to a forum
» can i upload images and videos on my forum.....
» Automatic resize of the images
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum