WP Marketing » Tag: alignment - Recent Posts http://wpmarketing.org/forum/tags/alignment Wordpress for Internet and Affiliate Marketing en-US Mon, 01 Sep 2014 06:22:55 +0000 http://bbpress.org/?v=1.0.2 <![CDATA[Search]]> q http://wpmarketing.org/forum/search.php hanadaddy on "How do I center the videos on my posts? (using CSS)" http://wpmarketing.org/forum/topic/how-do-i-center-the-videos-on-my-posts-using-css#post-542 Tue, 05 Jun 2012 20:26:10 +0000 hanadaddy 542@http://wpmarketing.org/forum/ <p>Oh... If you are going to use MediaElement.js , you can add below code into your theme's header.php file.<br /> All your video file will be centered.</p> <pre>&lt;style&gt; .mejs-container { margin-left: auto ; margin-right: auto ; } &lt;/style&gt;</pre> vegasb2k on "How do I center the videos on my posts? (using CSS)" http://wpmarketing.org/forum/topic/how-do-i-center-the-videos-on-my-posts-using-css#post-541 Tue, 05 Jun 2012 13:15:04 +0000 vegasb2k 541@http://wpmarketing.org/forum/ <p>For entering code directly into the post, that is fine. But I don't want to have to add manual code to each and every post that has a video. I just want to make the adjustment in the CSS stylesheet so that it happens automatically on every post.</p> <p>I've searched and hacked as much code as I can find, but having no luck finding the right way to adjust the code. </p> hanadaddy on "How do I center the videos on my posts? (using CSS)" http://wpmarketing.org/forum/topic/how-do-i-center-the-videos-on-my-posts-using-css#post-540 Tue, 05 Jun 2012 10:00:28 +0000 hanadaddy 540@http://wpmarketing.org/forum/ <p>If you want to align "right"</p> <pre> &lt;div align="right"&gt; [hana-flv-player video="http://yourwebsite.com/wp-content/plugins/hana-flv-player/babyhana.flv" /] &lt;/div&gt; </pre> <p>Align right and wrap the video with the text.</p> <pre> &lt;div style='float:right;margin-left:5px;'&gt; [hana-flv-player video="http://yourwebsite.com/wp-content/plugins/hana-flv-player/babyhana.flv" /] &lt;/div&gt; </pre> <p>Align left and wrap the video with the text.</p> <pre> &lt;div style='float:left;margin-right:5px;'&gt; [hana-flv-player video="http://yourwebsite.com/wp-content/plugins/hana-flv-player/babyhana.flv" /] &lt;/div&gt; </pre> hanadaddy on "How do I center the videos on my posts? (using CSS)" http://wpmarketing.org/forum/topic/how-do-i-center-the-videos-on-my-posts-using-css#post-539 Tue, 05 Jun 2012 09:45:04 +0000 hanadaddy 539@http://wpmarketing.org/forum/ <p>Somehow , I can&#39;t paste the example code here. So here is the screen capture image for your reference.</p> <p> <a class='bb_attachments_link' href='http://wpmarketing.org/forum/?bb_attachments=539&bbat=42'><img src='http://wpmarketing.org/forum/?bb_attachments=539&bbat=42&inline' /></a> </p> hanadaddy on "How do I center the videos on my posts? (using CSS)" http://wpmarketing.org/forum/topic/how-do-i-center-the-videos-on-my-posts-using-css#post-538 Tue, 05 Jun 2012 09:36:49 +0000 hanadaddy 538@http://wpmarketing.org/forum/ <p>Hi, </p> <p>Wrap the [hana-flv-player] with "center" tag. </p> vegasb2k on "How do I center the videos on my posts? (using CSS)" http://wpmarketing.org/forum/topic/how-do-i-center-the-videos-on-my-posts-using-css#post-537 Mon, 04 Jun 2012 21:36:49 +0000 vegasb2k 537@http://wpmarketing.org/forum/ <p>What code can I add to my css stylesheet so that all videos entered into my posts are centered?</p> <p>Right now, by default, they are all left aligned.</p> <p><code>My test page is at iqhomes-lv.com/listings/2929-sterling-cove-dr/</code></p> <p>Please be as specific as possible with the coding as that is not my strong point.</p> <p>Thanks in advance,<br /> Greg </p>