The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Automatic align images and videos

View previous topic View next topic Go down

Solved Automatic align images and videos

Post by Luffy on November 26th 2013, 1:29 pm

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


Last edited by Marios94 on November 26th 2013, 1:32 pm; edited 1 time in total (Reason for editing : forgot vesion)
avatar
Luffy
Manager
Manager

Male Posts : 4782
Reputation : 484
Language : Greek, English
Location : Greece

http://vibes.forumotion.com/

Back to top Go down

Solved Re: Automatic align images and videos

Post by Ange Tuteur on November 26th 2013, 1:40 pm

You can do this however, this would affect the emoticons in your posts as they're images too.

CSS:
Code:
.postmain .postbody img{
display:block;
margin:0 auto;
}
avatar
Ange Tuteur
Forumaster

Male Posts : 13175
Reputation : 2876
Language : EN10, FR5
Location : Macungie, PA

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Automatic align images and videos

Post by Luffy on November 26th 2013, 1:42 pm

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?





avatar
Luffy
Manager
Manager

Male Posts : 4782
Reputation : 484
Language : Greek, English
Location : Greece

http://vibes.forumotion.com/

Back to top Go down

Solved Re: Automatic align images and videos

Post by Ange Tuteur on November 26th 2013, 1:47 pm

Try this:
Code:
embed{
display:block;
margin:0 auto;
}
avatar
Ange Tuteur
Forumaster

Male Posts : 13175
Reputation : 2876
Language : EN10, FR5
Location : Macungie, PA

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Automatic align images and videos

Post by Luffy on November 26th 2013, 1:58 pm

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..
Code:
#noel_deco_swf{
position:absolute !important;
 margin:33px 0px 0px 40px;
 
}
avatar
Luffy
Manager
Manager

Male Posts : 4782
Reputation : 484
Language : Greek, English
Location : Greece

http://vibes.forumotion.com/

Back to top Go down

Solved Re: Automatic align images and videos

Post by Ange Tuteur on November 26th 2013, 2:03 pm

My mistake try this to keep it to posts only:
Code:
.postmain .postbody embed{
display:block;
margin:0 auto;
}
avatar
Ange Tuteur
Forumaster

Male Posts : 13175
Reputation : 2876
Language : EN10, FR5
Location : Macungie, PA

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Automatic align images and videos

Post by Luffy on November 26th 2013, 2:05 pm

ok i will try it in a bit cause it appears that something went wrong and my forum changed completely..





avatar
Luffy
Manager
Manager

Male Posts : 4782
Reputation : 484
Language : Greek, English
Location : Greece

http://vibes.forumotion.com/

Back to top Go down

Solved Re: Automatic align images and videos

Post by Luffy on November 26th 2013, 2:35 pm

closed





avatar
Luffy
Manager
Manager

Male Posts : 4782
Reputation : 484
Language : Greek, English
Location : Greece

http://vibes.forumotion.com/

Back to top Go down

Solved Re: Automatic align images and videos

Post by Sanket on November 26th 2013, 5:53 pm

Solved?
avatar
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2828
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

Solved Re: Automatic align images and videos

Post by Luffy on November 26th 2013, 8:11 pm

Yes Solved!





avatar
Luffy
Manager
Manager

Male Posts : 4782
Reputation : 484
Language : Greek, English
Location : Greece

http://vibes.forumotion.com/

Back to top Go down

Solved Re: Automatic align images and videos

Post by Ange Tuteur on November 26th 2013, 8:14 pm

Topic Solved and Archived
avatar
Ange Tuteur
Forumaster

Male Posts : 13175
Reputation : 2876
Language : EN10, FR5
Location : Macungie, PA

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum