HTML - How To Make A Background Image A Link?
Hi Guys i have this image and i wont to add a link to it so it will take the user back to the home page,
Would some one be able to help me? im aware this is pre amateur for some... Heres the snippet..... HTML Code: <table width="850" border="0" cellpadding="0" cellspacing="0"> <tr style="height: 110px"> <td style="background-image: url(/images/logo.png); background-position: left top; background-repeat: no-repeat"> </td> <td style="background-image: url(/images/ssl.png); background-position: right top; background-repeat: no-repeat"> </td> </tr> </table> I wont to add the link to the image "Logo.png" any suggestions or examples? Thanks for looking.. Similar TutorialsHi all, I'm trying to make my background (which contains my logo and site name) to be clickable to my site's URL. Seem to be having difficulty because I am using a modified WordPress template along with linking to a stylesheet. Not very good or familiar with php and css, unfortunately. Anyone have some energy to crank this one out with me? sorry for being vague in my initial post. Here is the header php code: <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>[TITLE]</title> <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" /> </head> Here is the css code: .header{margin:20px 0;} .header .top{background:url(images/logo-graphic.jpg) top left no-repeat; height:120px; width:960px; margin:20px auto;} .header .top #secondary{float:right; width:468px; height:60px; margin:20px 0 0 0; border:1px solid red;} .header .navigation{background:url(images/navigation-bar-bg.png) top left repeat-x; height:61px;} .header .navigation .nav-wrapper{width:960px; margin:0 auto; height:49px;} .header #searchform{float:right; width:325px; height:40px; margin-top:6px;} .header #searchform #s{font-size:14px; padding:6px 4px; border:1px solid #666; outline:none; -webkit-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px; -moz-box-shadow: inset 0px 1px 3px #888;-webkit-box-shadow: inset 0px 1px 3px #888;box-shadow: inset 0px 1px 3px #888; } I like to use TinyPic to add pictures to my websites, but I don't really do it for the background, Can someone provide the code to make the background from a link. please help me guys!!! im trying to find a html code that allows people download a pdf files from the website that im trying to make..anyone out there help me.. 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'm not sure if this is an html thing, or a CSS thing, but I want to make a site where the background stays the same, and the content moves, for example: http://www.westciv.com/style_master/...ial/index.html thanks! How do you make a link such that when it is clicked it goes nowhere? I have this link (that reads "Links") that reveals a hidden submenu below when clicked. The problem is, I don't want to take the user anywhere when "Links" is clicked, I just want it to reveal the submenu. I usually do a href="#", but I discovered that that actually brings you to the top of the current page, but I don't want that. I also tried removing the "href" all together, but then it doesn't look clickable any more. I want this link to have all the attributes of a link, it just can't go anywhere. Any help would be great, thanks!! HTML Code: <form method=post action="http://links.verotel.com/cgi-bin/addreseller.verotel" target=_blank> <input type=hidden name=verotel_website value=80145> <center><input type=submit value="Sign me up!"> </center> </form> there has to be a way to make this into a text link, i cannot seem to figure it out for the life of me How do I make a background that stretches and destreaches (is that a word?) without stretching the content in the middle? Like in this website: http://www.w3schools.com/ . Is it possible to make each row in a table a link to a website? (regardless of how many columns there are). Greetings I have this problem that i have menu in Iframe and from that iframe i have link to another page. Now when i click the link it opens the link in the iframe window and does not move me completely on the new page. How do i put link that will get me to new page, and does not open it in the iframe window? Also i have another page with PHP include, would love to know the same thing in PHP. So i have this link that opens in the IFrame window, but i dont want to open it in IFRAME, but i want to move completely to the page the link shows. Also i don't want to open it in new window, i want it open in same window. Thanks for help! Can someone show me how to make a background stay still when you scroll up and down the page? Hi Newbie question: I want my html file, when accessed directly from the browser, to open a different web-page (which is a php script that calls my html file when it's done). But if my html file was reffered to from that page, it's ok - open it. How can I achieve this? Thanks Joe Hello all, i created a link & made it non underlined, & i need to make it underline after i clicked on it can anyone tell me how i can do this? the code for my link is <a href="frontpage.view.php" style=text-decoration>Home</a> Hi, Im new to this forum and i need some help, so what i have so far a drop down menu and in that drop down menu i have 20 e-mail accounts and what im looking for is how do i click one e-mail and it links to another page and displays if that e-mail is used or not. And how do i when they selcet a e-mail it shows pricing. how can i do this im using front page 2003, I would relay appreciate the help this is what i have in my code, oh and its HTML. Code: <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>e-mail test</title> </head> <body> <p align="center"> </p> <p align="center">e-mail test</p> <form method="POST" action="--WEBBOT-SELF--"> <!--webbot bot="SaveResults" U-File="_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" --> <p align="center"><select size="1" name="D1"> <option>MyOwnHog.com</option> <option>MyOwnBug.com</option> <option>MyOwnRatRod.com</option> <option>MyOwnHotRod.com</option> <option>MyCustomBuild.com</option> <option>MyBig10Inch.com</option> <option>MyOwnCustomRod.com</option> <option>IMACoonAss.com</option> <option>MyCoonAss.com</option> <option>MyCustomBug.com</option> <option>TacklinMyLife.com</option> <option>StillProgramming.com</option> <option>StillBassFishing.com</option> <option>StillSalmonFishing.com</option> <option>StillSal****erFishing.com</option> <option>StillFlyFishing.com</option> <option>StillLakeFishing.com</option> <option>StillFreshWaterFishing.com</option> <option>Want2Hunt.com</option> <option>StillDuckHunting.com</option> <option>MyCustomRig.com</option> <option>StillDeerHunting.com</option> </select> <input type="submit" value="Submit" name="B1"> </p> </form> <p align="center"> </p> </body> </html> Originally Posted by bud2 View Post Hi All I am making some new pages for my websites and want them all link together. They are all coded to reached the main page by <a href> tag but also want each of the new pages to link together. So I guess my question is Will I have to add a new <a href>tag such as <a href="htmlforums.html">How to make multiple links all connect</a> and so on on each new page.....that includes the first one, the next page will contain 2 a href, the next one 3 and so on.. Thanks for your help Will I have to add a new <a href>tag such as <a href="htmlforums.html">How to make multiple links all connect</a> and so on on each new page.....that includes the first one, the next page will contain 2 a href, the next one 3 and so on.. Need help incorporating an ever changing background as seen in this site - http://www.maddecent.com/ Any ideas folks ? ? I've looked all over the web and can't find an effective way to do this. Can someone please help? I need to make text drop down menus when you mouseover my links. This is a perfect example: http://www.stpatrick.org/ Thanks a lot! how can i get a black strip on the left side and the top of my page. i want black background behind my list of links on the left. and how can i get a list of links to run horzintal on the top of my page? any help would be useful. Hi All, Nice site BTW, my problem is i want to add some text with a background colour behind it but i want the background colour to stretch the full width of the page ? Can anybody help me out Thanks |