RiseNE Posted September 9, 2015 Share Posted September 9, 2015 Hi. I've used some embed code from a countdown clock widget. However, I would like it centered on the page, but I don't know how. The embed code I have used is: <object width="313" height="109"> <param name="movie" value="https://d1owebpsm4lcev.cloudfront.net/w/_003.swf"/> <param name="flashvars" value="eid=185034"/> <param name="wmode" value="transparent"/> <param name="allowScriptAccess" value="always" /> <embed src="https://d1owebpsm4lcev.cloudfront.net/w/_003.swf" type="application/x-shockwave-flash" allowScriptAccess="always" width="313" height="109" flashvars="eid=185034" wmode="transparent"/> </embed> Thanks for any help. Link to comment
RiseNE Posted October 19, 2015 Author Share Posted October 19, 2015 I managed to work this out for myself in the end. I'm putting the answer on here anyway in case it helps anyone else: To centre the block, I added the following to the start and end of the embed code: <center> </center> Link to comment
dhaidri Posted October 4, 2016 Share Posted October 4, 2016 hi, When i add the above code to my Custom CSS it gives me a Syntax error? I am using Hayden theme and on the home page you can see under Quick Select that MOst Popular link is left aligned. I want this code block to be centralized. www.hamiltonresourcing.com Link to comment
mmm314 Posted November 29, 2016 Share Posted November 29, 2016 This is html, not css. Html is used in header, footer, and code blocks, not in the custom css section. Cheers! Link to comment
astark Posted March 1, 2017 Share Posted March 1, 2017 @mmm314 Can anyone show an example. I'm inserting and it's not centering. Not sure if I'm not placing it correctly. Link to comment
ENTH_LABS Posted March 28, 2017 Share Posted March 28, 2017 @astarkOn my site I needed to embed an Apple Music Badge linking to Artist page... In the embed block: Click the </> symbol to the right of the text field (where you'd paste in your embed code. It'll open a blank text editor window. In there I pasted the embed code and modified with tags wrapping--see below. **<center>** <a href="https://some.link-goes-here" style="display:inline-block;overflow:hidden;background:url(/assets/shared/badges/en-us/music-lrg.svg) no-repeat;width:115px;height:40px;"></a> **</center>** Link to comment
azrael Posted April 28, 2017 Share Posted April 28, 2017 Perfect! All I needed. And worked. Thank you! Link to comment
woodshaped Posted June 28, 2017 Share Posted June 28, 2017 Worked perfectly tynewearsport! thank you Link to comment
topshopper19 Posted July 18, 2018 Share Posted July 18, 2018 This worked for me too. Thanks Link to comment
Guest Posted May 23, 2019 Share Posted May 23, 2019 Worked for my issue too thankyou so much. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.