HTML - Inserting Background-image??
I'm trying to insert a background image from my CSS into a table and not having any luck getting the image to appear.
This is what the CSS looks like: #trekBike { background-image: url(assets/photos/bluerackbike.jpg); height: 188px; width: 250px; z-index: inherit; position: relative; top: 10px; left: 10px; } and in my table I try to call the style like this: <table width="791" border="0" cellspacing="1" cellpadding="2"> <tr> <td><div id="trekBike"></td> How should I be referencing the CSS? Similar TutorialsIs it possible to put a smaller background image on top (like in layers) of my old background image? I have a background image, but I want to put a smaller image on top of that one, but for it to be treated also as background image. This image is a black vertical rectangle, but is faded on the edges to give a transparency, so its a .png. So ultimately what I am trying to do is put this black rectanlge on top of my original background image and with the transparency on the edges of this image, be able to see my original background image. How can I do so? Also what I was thinking was that this faded background would be scaled to fit different screen sizes, so do "width: 75%"? Just so that it ALWAYS stays at 75% no matter what screen size it is viewed on. Is this the right approach towards getting this result? Hello we i insert pic only show in fix area but i wanna show it in my my complete page (not backgroud) pic. This is my code <img src="abc.gif" alt="abc" /> <img src="abc.jpg" alt="abc rock" width="304" height="228" /> i wanna show my pic only as header and in whole page you can see this in forum header. and see link for example http://uploadpic.org/v.php?img=JvzHJN0gmm please help me Hello fellow helper By now you probably know my topics by name and find them somewhat annoying due to their difficult nature.. (ive gotten few to no replies on them..) Anyways, im back.. with.... a simple question! Its about tables.. i havent studied them yet. Just getting into whole table thing. I want to insert an image that will serve as a LEFT outer border that will connect the header image and the image below. To get the point check this out: http://.com/FINAL.html It is a 38 x 24 .png.. and i was thinking about stretching it to fit. Dont know if thats the solution.. but hey, thats why im posting. Please tell me what codes to insert and where. The image i was talking about is located he http://.com/blokjee.png Appreciate any help! Dont be shy.. please. Thanks. HTML Code: <div> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> </div> <div align="center"> </div> <table style="border-collapse: collapse; width: 600px;" align="center" border="2" bordercolor="#410d3e" cellpadding="0" cellspacing="0"> <tbody> <tr> <td align="left"> <table style="width: 90%;" cellpadding="0" cellspacing="0"> <tbody> <tr> <tbody> <tr> <td id="YMLPZCTD" align="center" valign="top"> </tr> </tbody> </table> </td> <td align="left" valign="top" width="100%"> <table style="width: 100%;" class="YMLPBT" id="YMLPBT" cellpadding="10" cellspacing="0"> <tbody> <tr> <div align="right"><img src="http://www..com/top.png" border="0" height="110" width="711" /></div> <td id="YMLPBTTD" align="left" valign="top"> <div><b> <font color="#410d3e" face="verdana,geneva" size="3"> <br /> Nieuwsbrief februari 2010</font></b></div> <table style="width:100%;" class="YMLPS3" id="YMLPS3" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="width: 100%;" align="left" valign="top"> <tbody> <tr> <td align="left"> <table style="width: 100%;" border="0" cellpadding="45" cellspacing="0"> <tbody> <tr> <td style="width: 100%;" align="left" valign="top"> <div><p> <font face="verdana,geneva" size="2">Beste Lezer van mijn eerste nieuwsbrief, <br> <br> Graag wil ik je opmerkzaam maken op de nieuwste activiteiten van <br> Sessio Communications. <font color="#410d3e"> <br> <br> <br> <div align="center"><img src="http://www..com/koord.jpg" border="0" height="189" width="170"/> <br> <a href="http://.com/basis.html"target=”_blank” ><b>Asitisinheaven.com</b></a></font></p></div> Ik nodig je van harte uit om <a href="http://www..com"target=”_blank” >mijn website</a> te bezoeken.<br> Reacties zijn welkom. Doorsturen naar andere belangstellenden mag. <br> <a href="[FORWARDTOFRIEND]"target=”_blank” >Stuur deze email door naar een vriend of vriendin.</a></p> </p><p> Mocht je geen belangstelling hebben om op de hoogte te blijven van<br> mijn verschillende workshops en trainingen dan kun je dat via de <br> link onderaan de pagina aangeven. Je e-mail adres wordt dan verwijderd. </div> <div><font face="verdana,geneva" size="2"><br /> Met vriendelijke groet,<br /> <br> Jan M.M. Boesten<br> <a id="link" href="http://www..nl"target=”_blank” >www..nl</a><br></p> </font> </div> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </table> <div><img src="onder.png"></div> Hello, I am wanting to insert an image on a mail that doesnt have to be downloaded to be seen, with my corporate identity, and make this image be a link to my web thankyou I'm new to HTML and I am just playing around with a few things to work on learning it. I am just using notepad and trying to insert an image to my web page. I have the image saved in the same folder as my notepad.html. I've tried both these codes but neither have seemed to work <img src="/image.jpeg" alt="image" /> and <img src="/folder/image.jpeg" alt="image" /> Could someone help me figure out exactly what I am doing wrong. Also if you know of any sites that are good at explaining the very basics would be nice too. Thank you. I have an image I want to insert into a simple table Cell. My code is as follows: <table> <tr><td align ="left"> img src = "/modules/Quotes/cqilogo.gif"></td></tr> </table> When I access the page I get: img src = "/modules/Quotes/cqilogo.gif"> I know the image is in the right place and it will work if I set it inside a paragraph. What have I got wrong?? Thanks alot I have a problem that is driving me crazy. I am not an expert by any means with html, but I can usually figure these things out, and this one has stumped me. For my site, I have an .png image that is an outline for what I want my advertisement to be located within. Below is the banner: location: Code: http://www.topsocomsites.com/skins/darktheme/ad-outline.png How do I use HTML to insert my javascript ad code that displays my banners to be located in the empty space of the above outline? Thanks in advance for your help! Hi, I'm a complete newb and html-challenged, so please forgive my stupid questions. This is what I want for the personal website I'm making: a fixed image as the background that covers the entire screen regardless of what screen resolution a user's computer has - this much I've managed with CSS...I think (like this right? http://www.geocities.com/serenamonster/index.htm ) clickable regions on this background image to use for navigation to various parts of the site. Or in other words, the background image as an image map. - this I'm having trouble with, because you have to designate the picture as a set # of pixels in dimension to make an image map right? and if I do that to my background image, then it may display too big or too small depending on the person's screen resolution right? So does anyone know how I can have clickable regions on my fixed background image without the image being too big for low resolutions or too small for high resolutions? (he http://www.geocities.com/serenamonster/map.html the background image is fixed at 800x400. I want to make each star on the image a hyperlink to a different part of the site). I read somewhere that standard is 800x600 to fill a person's browser right? But on my computer the image only covers about 2/3 of the browser screen which is too small. How can I make it so that it fills 100% of any viewer's screen regardless of resolution? How does it look on your computer? I know these are probably just really stupid questions because I'm missing something really fundamental...but any help would be greatly appreciated! Thanks! ~Serena P.S. is it possible to do mouseovers for certain coordinates on an image map? Hello, 1) I need to know how to make my background image the size of every monitor that will view it in any browser? Any idea? OR at least the size of most monitors 2) Also, how do I make is stick so it doesn't scroll, everything scrolls above it or on it. If the answer is CSS could you please write out a bit of code for me and tell me where to put it. Pretty please, with sugar on top. I know it sounds lazy, but I use to now CSS can't remember anything now and I'm suffering from short term memory loss which is new for me. I have to relearn everything and remember it - hard to do when you can't remember what you did 5 minutes ago. ~eDee Hi Guys, Firstly i apologise if this in the wrong section of the forum, please let me know. My problem: I have designed a webpage for my DJ services in Photoshop and plan to slice it up. The first problem is my background. I designed it myself so its not simple. Basically i dont have a clue on how i should export the background from CS5 or how to implement it into my website on dreamweaver cs5. Also i want to export my images once sliced from Photoshop with a transparent background, how would i do this? Thanks for any help Raver910 Hey, I'm wanting to use a larger background image with a height of around 810pixels. Currently when i implement it, only around half the image appears and there is no scroll bar to use to view the whole image. And currently when i put a css box into it, when i scroll down it will still only show the top section of the image. Can anyone assist in what code to put into the CSS to allow the scroll bar to appear so i can view the whole background image? Thanks (sorry, meant to put this in the CSS section, only just realised) Can somebody give me a full code <div style=""> for putting background images in divs... thanks in advance for you're help! Hello All, I hope this is a good place to ask my question. I was working on a a webpage and tinkering with two different screen capturing software to capture my website then all of a sudden I realized I can no longer see the background of my webpage. I can go online and see background images of someone else webpage but no the webpages stored on my computer. If anyone has any idea about the cause of the problem please help. This is the current script I am using for background change upon a timer, does anyone know how and where I can add a no bg repeat and position the image on the bottom left? Any help would be great! Thanks <script type="text/javascript"> var bgImages = new Array(); bgImages.push("/image/girl.gif"); bgImages.push("/image/girl2.gif"); bgImages.push("/image/girl3.gif"); //bgImages.push("URL HERE"); function LoadRandomBackground() { var randomImageIndex = Math.floor(Math.random()*bgImages.length) document.body.background = bgImages[randomImageIndex]; } function StartBackgroundRefreshTimer() { var timer = setInterval('LoadRandomBackground()',10000); // 10 seconds } </script> </head> <body onload="LoadRandomBackground(); StartBackgroundRefreshTimer()"> Hello, Well im trying to make a web page type thing and i was wondering if there is a way to make the background change as if it were an image when you shrink the page down. http://www.legouniverseforums.com/radio.html thats the link. i want the video chat to be on the orange part box and the chat to be in its box but on some computers they go in there boxes but on other computers they dont. Here is how it looks on mine i would like it to look like this on every computer. http://www.legouniverseforums.com/Sc...34.34%20PM.png Hey everyone. I'm not too experienced in HTML and I'm having a problem with displaying a background image on this site I'm building. I know this probably isn't the best way to be doing what I'm trying to do, but I'm using a Frameset with 3 columns. The left and right I just want to display the background image and the main to be another frameset containing the main website content. It looks perfectly fine in Firefox, but in Internet Explorer the background images in leftMargin and rightMargin don't show; it's just blank. Here is my index.html file: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>| Totaro's Restaurant |</title> </head> <frameset cols="15%, 70%, 15%" border=0> <frame name="left" src="leftMargin.html" /> <frame name="main" src="main.html" /> <frame name="right" src="rightMargin.html" /> </frameset> <noframes> I'm sorry, it seems your browser doesn't support frames! x( </noframes> </html> and here is the code of one of the margins: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <style> body { background-image:url(images/bg.jpg); background-repeat: repeat; } </style> </head> <body> </body> </html> Here it is in Firefox: http://i34.photobucket.com/albums/d1...itefirefox.jpg And in IE: http://i34.photobucket.com/albums/d1.../websiteie.jpg Any help would be appreciated. How would I do this? i'm trying to set an image from my harddrive as the background but it doesn't seem to be working. I've been trying <body background="image location.jpg"> but it doesn't work. Any thoughts or solutions? thanks Hi, I'm using a marquee with a colour background using the following code <marquee bgcolor="#BFCEE5" however I wish to use an image instead - does anyone know the code for background image? The marquee is scroll up in a box Cheers I have a template that I'm trying to customize. It has a left sidebanner div and image. How do I get text to appear on top of the image? By making the image a background-image in CSS? By specifying z-index? Your help is GREATLY appreciated |