WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Defining css on page, not in style.css? (3 posts)

  1. sailormarcus
    Member
    Posted 6 years ago #

    I'm using WordPress to showcase my flash movies, so I'm trying it to set up so different flash movies will be displayed on different posts, using custom variables. I'm using Kimili Flash Embed to embed the movies and I use custom fields to load the address to the urls.

    Problem is, I can't center the movie with the margin:auto; command unless I specify the width of the div object in which the movie is embedded. The width will be different depending on the movie, so defining it in the style.css won't work very well.

    Is there a way of defining the width of a div class on the actual page instead of in the style.css file?

  2. Adam Brown
    Member
    Posted 6 years ago #

    <div style="width:300px;">

  3. sailormarcus
    Member
    Posted 6 years ago #

    Thanks, exactly what I was looking for.

Topic Closed

This topic has been closed to new replies.

About this Topic