CSS - Possible To Embed Asp In Css?
I have a stylesheet I'm working on. I currently have the background color attributes for my table headers directly defined within my <th> tag.
The background color is dynamic based on what the site is classified as. This value is extracted from my db. My question is, can I embed my ASP code within the css file so that I don't have to go to each and every <th> tag to define the background color? I tried the following, which did not work: Code: th { background-color: <%=mybgColor%>; } Okay I got it work, for some reason I must have had a typo because I cut and pasted my asp code over what I had and it works. Similar TutorialsHello, I would like to know if a font can be imported into a CSS. I am asking that because it would be very nice if I had the opprtunity to design my webpage with the fonts that I want, in order to achieve the desirable layout. Thank you. It is my understanding that the EMBED tag is not XHTML compliant correct? If so, how can you get around it as i also understand that without the EMBED tag within the OBJECT, mozilla fails to pick up the content. Is there any way to embed font so it would be viewable by firefox? I know yo can do it in IE, but can't find a way for firefox. Thanks, Greg I need a method in which I can apply z-index to an <object> and still have a functional html/CSS z-index. Using embed with the following class works fine. However validation for XHTML 1.1 does not allow for the embed tag. Therefore a workaround method using object has been devised and implemented. As previously mentioned this cripples z-index usage for some reason. Please assist. .css sniplet Code: div#bImage{ z-index:0; left:0; top:0; } div#main { z-index: 1; line-height:100%; top: 0px; bottom: 0px; left: 0px; right: 0px; } .html sniplet Code: <div id="bImage"> <object id="bImage" type="application/x-shockwave-flash" data="flash/backdrop.swf" > <param name="movie" value="flash/backdrop.swf" /> <param name="scale" value="exactfit" /> </object> </div> <div id="main"> <-- Content here --> </div> The background seems to always adopts a higher z-index (unless an embed tag is used). Any solutions to my problem? [try to stay on topic] Hello I know how to insert my flash in a regular html page. However I would like to add a flash menu to my CSS. The reason I would like to do this is because I don't want to have to enter the object/embed script into each html page. Can you tell me if this is possible (Flash integration into CSS) Regards I want to display text, image, videolinks in the header and footer images in my html with css.While header and footer images are displayed in the html , the intended text,image,videolinks are not displayed within the image block of header, footer.Will you please advise me the correct code in css, html to embed the text,image,videolinks inside the header and footer images. thanks |