homepage Welcome to WebmasterWorld Guest from 54.204.94.228
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Use Flash File instead of Image
Fortune Hunter




msg:3281930
 5:28 pm on Mar 14, 2007 (gmt 0)

I am trying to modify an existing site right now that was built using a bunch of CSS. I really don't know that much about CSS so I am trying to modify an existing file. I have a home page that uses an external style sheet to create the layout of the page. At the top of the page the style sheet says there is an image that is there, which shows up fine.

However I would like to replace this image and have a small flash video there instead. I tried simply changing the reference in the style sheet to use the Flash file, but it doesn't work. Here is the CSS tags from the style sheet. If anyone can tell me how to modify this to point or put the Flash file there instead of the image I would appreciate it.

}

#homePage #sideNav {
padding: 20px 555px 20px 0px;
background-image: url(../Images/sidenav_background.jpg);
background-repeat:no-repeat;
background-position: right;
height: 208px;
}

Thanks in advance.

 

PSWorx




msg:3281954
 5:57 pm on Mar 14, 2007 (gmt 0)

You cant use flash files with css you may need to modify the actual html template here, i was reading a post earlier that used some sort of css/flash business, id say that one of the mods will point you in the right direction but i dont think thats supported greatly so the last and really only option is going to be to edit the html template, depending on site layout it may be as simple as adding a div at the end of the document which includes the flash object, then using css position that in the place you need it.

#flashDiv {
position: absolute;
top: 0px;
right: 0px;
}

<div>
<object>..............</object>
</div>

[edited by: PSWorx at 5:58 pm (utc) on Mar. 14, 2007]

Fortune Hunter




msg:3284467
 3:13 am on Mar 17, 2007 (gmt 0)

PSWorx:

Yes, I found out from other sources after I posted this that what I was trying to do wouldn't work. However your proposed solution is really neat and gave me a good idea. Actually I was able to solve the problem in a less complex way, but I will be sure to file your suggestion away for the next time I run into a similar problem. Thanks!

Fortune Hunter

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved