The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Automatic align images and videos

3 posters

Go down

Solved Automatic align images and videos

Post by TheCrow Tue Nov 26, 2013 5:29 am

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 Tue Nov 26, 2013 5:32 am; edited 1 time in total (Reason for editing : forgot vesion)
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Automatic align images and videos

Post by Ange Tuteur Tue Nov 26, 2013 5:40 am

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;
}
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Automatic align images and videos

Post by TheCrow Tue Nov 26, 2013 5:42 am

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?
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Automatic align images and videos

Post by Ange Tuteur Tue Nov 26, 2013 5:47 am

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

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Automatic align images and videos

Post by TheCrow Tue Nov 26, 2013 5:58 am

This code you gave me, i added a border for the videos, but it took the border to the top 2014 counter...

Automatic align images and videos  Rnyr

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;
  
}
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Automatic align images and videos

Post by Ange Tuteur Tue Nov 26, 2013 6:03 am

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

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Automatic align images and videos

Post by TheCrow Tue Nov 26, 2013 6:05 am

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

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Automatic align images and videos

Post by TheCrow Tue Nov 26, 2013 6:35 am

closed
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Automatic align images and videos

Post by Sanket Tue Nov 26, 2013 9:53 am

Solved?
Sanket
Sanket
ForumGuru

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

Back to top Go down

Solved Re: Automatic align images and videos

Post by TheCrow Tue Nov 26, 2013 12:11 pm

Yes Solved!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Automatic align images and videos

Post by Ange Tuteur Tue Nov 26, 2013 12:14 pm

Topic Solved and Archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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