Centering a flash image on my website (3 posts)

  1. stormcry82
    Posted 3 years ago #

    So I'm trying to get this floating clock centered and this is what I'm working with:

    <embed src=http://safir85.ucoz.com/bdlab-blogspot/24work/GlassOfficeClock.swf width=200 height=200 wmode=transparent type=application/x-shockwave-flash></embed>

    I've tried:

    <div class='center'><embed src=http://safir85.ucoz.com/bdlab-blogspot/24work/GlassOfficeClock.swf width=200 height=200 wmode=transparent type=application/x-shockwave-flash></embed></div>

    But this isn't seeming to work. Can anyone give me some help on what I'm doing wrong here?

  2. bioshox
    Posted 3 years ago #

    For a quick solution you can use

    <center> whatever is to be centered </center>

    If you want a harder way you could create a div class like so:

    width: 1000px;
    margin: 0 auto;

    Then wrap your flash in the following

    <div class="centerFlash"> whatever to be centered </div>

  3. stormcry82
    Posted 3 years ago #

    Wow, now I feel really dumb lol, I was only going from the start with <center> and not closing it up at the end with </center>. I'm such a noob lol, gotta learn somehow I suppose though. Thanks for your quick help :D.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.