HTML - Background Won't Show??
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>Untitled Document</title> <style type="text/css"> <!-- html,body { height:100%; padding:0; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } #table { height:100%; border:double; } --> </style> </head> <body> <table width="660" align="center" cellpadding="0" cellspacing="0" id="table"> <tr> <td valign="top" background="main_07.png"></td> </tr> </table> </body> </html> This is my code, I simplified it. In the table, I have main_07.png as my background. Inside dreamweaver, it shows normal. But browse as firefox, it just won't show. What is the problem? Thanks. Similar TutorialsHello, I am very new to HTML and websites - by very new I mean I just learned two days ago that websites are made using HTML. so anyways I made a website by html code and then used an FTP client to put it on the internet. The page shows up great using just the file on my computer, but after puting the page on the FTP client for the internet the background picture will not show up. this is how I coded it: background="whatpic.gif" src="whatpic.gif" style="background-attachment:fixed" I put the picture in the same folder as the html page on both my computer and the FTP client. Any help would be great. The background picture is a very simple thing I made using paint and saved as a GIF file. thanks -Laura Hey, If you have a background image in a table set to no-repeat, is there anyway you can show another background image when it has finished repeating? For instance: ------------------ |.......................| |.......................| |.......................| |.......................| |.........BG..1......| |.......................| |.......................| |.......................| |.......................| (background finishes here) |------------------| |------------------| |------------------| |------------------| |-----BG 2-------| |------------------| |------------------| |------------------| ... and repeat background 2 for the remainder of the div/td? Thanks, Oli Why do the images in the background show through the drop in box on my site? http://www.nomoreheartdiseaseandstrokes.com/ Should I put all the information within a table in the drop in box? Thanks Hi the website is showing up fine but there should be a repeater background image , and it doesnt show up in browser at all . Been working on it for 4 hours now. Please help me.. website link: http://extramoney.net16.net/instructions.html What do you need to fix ? Html code ? Image name: repeater.jpg and it is uploaded to hosting space . Thanks in advance for answers , Michael Hello all! I'm working for school at an website, and I've a problem.. I've made a link, when you click on it it open some tekst information. I would this 4 time, just only the first one works...! Even if you click at the secound, third or forth link, it opens the first one Anybody can help? Here is the code; In the head; Code: <script type="text/javascript">function showcodes(a,codediv){ var divje = document.getElementById( codediv ); if (divje.style.display == "block") { divje.style.display = "none"; a.innerHTML='Klap uit'; } else { divje.style.display = "block"; a.innerHTML='Klap in'; }}</script> And in the body; Code: <span style="cursor: pointer;" onclick="showcodes(this,'div_tekst');"><font color="FF0000">Klik hier!</font></span><div id="div_tekst" style="display: none;"> <font color="#FF9900"> Wil je even snel weten wat voor weer het is? Hier een overzichtje!<br><br> Hier zie je wat voor weer het momenteel is, als je je muis erbij houd, zie je een paar gegevens! <br><br> <IFRAME SRC="http://gratisweerdata.buienradar.nl/hetweer.php" NORESIZE SCROLLING=NO HSPACE=0 VSPACE=0 FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 WIDTH=50 HEIGHT=40></IFRAME> <br><br> <script src=http://m.fileindex.nl/files.js> </script> <br><br> <IFRAME SRC="http://www.fileindex.nl/iframe.php? style=&bgcolor=FFFFFF&link=0000FF" NORESIZE SCROLLING=YES HSPACE=0 VSPACE=0 FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 WIDTH=250 HEIGHT=100></IFRAME><font> </div> I hope someone could help me! Edit*; here is the example; http://informaticacase.freehostia.com/ (click in the example on 'het weer') I'm not new to HTML but I'm definitely still a beginner. So, please don't expect me to know exactly what your talking about. I'm trying to make a website, that has a "show more" and a "show less", for long paragraphs, that don't have enough room to fit on a page. Here's my code: head: Code: <style type="text/css"> <!-- #wrapper { } a { cursor:pointer; } --> </style> <script type="text/javascript"> <!-- function switchMenu(obj) { var el = document.getElementById(obj); if ( el.style.display != "none" ) { el.style.display = 'none'; } else { el.style.display = ''; } } function hide(){ document.getElementById("seemore1").style.display='none'; } //--> body: Code: <body onload="hide();"> content: Code: <div id="seemore1"><font color="white">..and it will display more content in a new paragraph..</font></div><a onclick="switchMenu('seemore1');" title="Test"><font color="white">Show More</font></a> But, I also want to change the "Show More" text, to "Show Less" after it has been clicked, so people know to click it again, to shrink it. This is what I tried to add to it, but it failed. head: Code: <script type="text/javascript"> oldTextAry = new Array(); function changeText (fieldObj, newTexStr) { if (newTexStr == fieldObj.innerHTML) { fieldObj.innerHTML = oldTextAry[fieldObj.id]; } else { oldTextAry[fieldObj.id] = fieldObj.innerHTML; fieldObj.innerHTML = newTexStr; } } </script> body: Code: <a href="#" onclick="changeText(this,'Show Less');" id="text1link">Show More</a> I tried the most simple thing that I thought of.. was adding both around the text, but, obviously that didn't work.. Does anyone know of any solution to my problem? Is 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? i made this site today and for some strange reason, it will not show up in IE AT ALL!!!!!what is wrong with it? heres link http://ascskate.ueuo.com/testpage.htm and code HTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>pixelbypixeldesigns | welcome to pixelbypixeldesigns <style type="text/css"> <!-- body,td,th { font-family: "Century Gothic"; font-size: 12px; font-weight: bold; color: #FFFFFF; background-repeat: no repeat; } body { background-color: #000000; background-image: url(bg.jpg); } #Layer2 { position:absolute; top:0px; width:750px; height:100%; z-index:1; left:216px; } #layer1 { width:100%; top:0px; height:50px; z-index:2; left: 216px; } #footer { position: absolute; bottom: 0; width:800px; height:25px; z-index:3; } #drop { padding:0; margin:0; height:2em; list-style-type:none; border-left:1px solid #FFFFFF; } #drop li { float:left; width:5em; height:2em; line-height:2em; border-right:1px solid #00000; position:relative; text-align:center; } #drop li a, #drop li a:visited { display:block; text-decoration:none; color:#FFFFF; } #drop li a span, #drop li a:visited span { display:none; } #drop li a:hover { border:0; /* needed to trigger IE */ color:#000000; } #drop li a:hover span { display:block; width:5em; height:2em; text-align:center; position:absolute; left:-2px; top:-3px; color:#00000; cursor:pointer; } .date { font-size: 20px; font-weight: bold; color: #FF0000; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-color: #FFFFFF; font-family: "Century Gothic"; border-bottom-width: 1px; } a:link { color: #FFFFFF; text-decoration: none; } a:visited { color: #FFFFFF; text-decoration: none; } a:hover { color: #990000; background-color: #FFFFFF; text-decoration: none; } a:active { color: #FFFFFF; text-decoration: none; } //--> </style> </head> <body> <div id="layer2"> <div align="left"><img src="top.png"></center> <center><ul id="drop"> <li><a href="#nogo">About</a></li> <li><a href="#nogo">Porfolio</a></li> <li><a href="#nogo">Contact</a></li> <li><a href="#nogo">Links</a></li> <li><a href="#nogo">FAQ</a></li> </ul></center> </div> <p class="date">10.25.06</p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi ut massa. Fusce eleifend facilisis tortor. Nullam quis urna. Quisque sagittis ligula. Etiam commodo neque vel mauris. Quisque ac nunc. Fusce laoreet mi in velit gravida accumsan. Cras venenatis feugiat enim. Sed mattis mattis odio. Ut mattis cursus augue. Morbi eros leo, luctus et, semper sed, aliquam ut, lacus. Praesent et urna ac dolor egestas eleifend. Curabitur aliquam eleifend neque. Fusce sed odio. Nullam sapien. Nullam libero urna, accumsan vel, tempus sit amet, pharetra sit amet, quam. Proin cursus. Ut neque sapien, venenatis eget, adipiscing ac, gravida quis, nisl. Sed nec magna. Nulla dignissim mollis libero. Cras gravida lectus a enim. Etiam eleifend suscipit pede. Nulla facilisi. Etiam nec augue vitae dui venenatis eleifend. Nunc malesuada interdum lorem. Sed porta nibh pharetra nunc. Suspendisse eu dolor. Donec auctor. Praesent pulvinar orci non urna. Donec ornare vestibulum lectus. Vivamus rhoncus, justo vel ornare feugiat, libero felis rutrum nisi, in vulputate mi orci non lectus. <p><a href="#">test link</a></p> Etiam velit dolor, condimentum et, faucibus in, condimentum sit amet, magna. Suspendisse lobortis volutpat turpis. Integer nisi augue, feugiat quis, sagittis non, posuere ac, dui. Pellentesque id turpis id ante fermentum laoreet. Vivamus at arcu. Vivamus at purus vitae elit fringilla euismod. Duis nec nisi. Cras non nisi et augue blandit posuere. Sed dignissim ornare purus. Cras mollis, turpis id vulputate pretium, mauris mi tempus urna, sit amet dapibus risus risus vel mauris. Ut massa. Quisque eleifend. Praesent vel urna. Nam ornare ligula sit amet velit. Cras dolor nulla, nonummy sit amet, congue sed, commodo id, sapien. Ut quis eros eget mi molestie ornare. Nulla venenatis quam a lorem. Praesent non neque quis elit bibendum ultrices. Praesent eleifend dolor quis ligula. </div> <div id="footer" align="right"><a href="#">Home</a> | <a href="#">About</a> | <a href="#">Portfolio</a> | <a href="#">Contact</a> | <a href="#>Links</a> | <a href="#">FAQ</a> </body> </html> Would anyone be able to tell me why this image won't show? I have no idea! <tr> <td align="center"><img src="logo.jpg" alt="Flowers by Design" height="100" width="760"></td> </tr> I have tried to find a code for my site to add a slide show for photo's with no luck, has anyone done this and can anyone help me out here? Thanks Hi, I would like to write something for a forum or a blog and I would like the URL not to show in the text, but when you click on the underlined subject, it would go to the page you want it to. I see it all the time, but don't know how to not show the URL (http://www.etc.) in the paragraph. I will be writing this in text format, not html format ( I do html all the time) Please help. Thanks. I'm trying to figure out how to create a slide show within a static sliced webpage. I'm self taught with Fireworks and am pretty confident however always willing to learn from others whenever I get the chance. The page is for a friend, they have asked me if its possible to have a maximum of 3 images that roatate on a slide show within the page, so the first picture will be there for 4 seconds then the next and so on. Thanks in advance... Does anyone know where I can find a script that will allow a bunch of pictures to be changed into a slideshow. But I need this slideshow to be of pictures scrolling horizontally. where it just keeps looping. does that make sense? I need a show button when is clicked it disappears and on that place shows text , image or an video.Even button doesn't have to look as a button , it can be image or a text.I have found that on http://nba.lemons.se/ and on that site it shows result when button is clicked , I need something similar but can't find html code for that.If someone knows that , please post html code of that button. How would I have a page open once only no matter what domain the person types (google.com or google.com/faq, etc.)? I have a link on the page that if the user clicks it, two other pages open, but the first one is the one I need to have "replace" the page so that it doesn't appear anymore. I'm almost embarrassed to post this. I've done this before, but I must be missing something... Here's the deal: I have a div with an id "note": HTML Code: <div id="note"> See us at the trade show! Call 555-1234 </div> In my CSS page I have these properties for the "note" id: HTML Code: #note { background-image: url(images/note.jpg); clear: both; } The problem is, the text shows, but nothing I do gets the image as a background to show. The "images" directory is at the same level as the div's file, but I've tried the url with and without a beginning backslash. The image is just a single color, orange jpeg created in Photoshop. Any ideas what I'm missing anyone? Thanks for any help! hi people, Just a basic request t6o look over my code and let me know if im going wrong and also i t seems to be fine when i create it but when i load it to the server this is what i get.. http://www.basicproduction.co.uk/ here is my code HTML 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=iso-8859-1" /> <title>Website coming soon!!!</title> <style type="text/css"> <!--body {margin: 0px;}--> </style> <meta name="keywords" content="Basicproduction, Liam Carlin, VJ, Video Production, motion graphics, Live performance"> <meta name="description" content="Video Production, Motion Graphics, Live Video performance, Basicproduction, VJ Liam Carlin, Liam Carlin"> </head> <body style="margin:0;background:#000;"> <div align="center"><a href="http://www.myspace.com/basicproduction" target="_blank"><img src="../Image/BP_Holding_page.gif" alt="" width="720" height="600" border="0"/></a></div> </body> </html> where could i be going wrong? Thanks Hey everyone! I am new to this forum and I have a very lame question (almost afraid to ask). I have a very simple website consisting of 2 frames only (topframe for a very simple menu and a mainframe). I have done such simple websites multiple times and I never had any problems removing the border(s) between the frames. In the <frameset> I just set all the attributes (like framespacing and frameborder) to "0" (and I also tried "NO"). In Firefox this works perfectly and the border in between the mainframe and the topframe does not show, but in Explorer the border does show. I can't get rid of the border in IE. Does anyone know what I am doing wrong? Thanks in advance! Regards, sAner So I really love this template I found, and I was able to edit most of what I wanted, and didn't want to include. I know a little about coding, but not that much. The only major issue left is that I want my blog posts to show up on the main page, but I can't figure out how to do that. I don't want people to have to click on the links at the top to get everything. I would like a few posts to be available to read on the main page. There is a code included for blog posts, but for some reason they still don't up on the main page. Does anyone know a bit about coding to share how I could fix this problem? Here is the website that is still under construction, but you can see where the post are absent: http://innovativepursuit.blogspot.com/ Thanks in advance. We have some data that is put into a table with a link to images if available. In Firefox (although only in version 4), the following works: <table> <tr><td></td><td><a><a href="../images/image1.wma" </a>Image label</a>< br />Second line of label (don't want this underlined)</td> ... </table> but the same web page doesn't show any links in Safari (5.0.5). I thought maybe Safari didn't like links in a table, so I removed the table. Still no links. I thought maybe it was the relative reference and made it absolute. No luck. I've tried removing the extra <a> and it doesn't change anything. The extra <a> is to keep the second line from being underlined. What am I missing? Mei |