HTML - Change Bgcolor To Default
Hi guys..i have 1 table which is background color is black. I also have link <a></a> inside that table. Once user click the link, it will change the table background color to red. Then when user click the link again,the color willl change to default color,black. i have no idea how to do that. any help?
Similar TutorialsHi, I'm using bgcolor in my table, but I'm facing a problem in showing the colors in full page! This is the code I'm using: Code: <table width='100%' height='100%' cellpadding='0' cellspacing='0'> <tr> <td bgcolor='blue'> </td> <td bgcolor='black'> </td> <td bgcolor='blue'> </td> </tr> </table> This is the current situation: http://img339.imageshack.us/img339/6346/nowlh2.jpg I want to maximize the color to the full pgae so the white color around the table is removed. This is what I'm looking for: http://img54.imageshack.us/img54/8522/wantul8.jpg Thanks in advance hi! well this is my first post on this site, hopefully someone can give me a solution as i'm tired of searching for one and failing ...... I built a frame based web site with a black background. my problem is that when the frames load in the framesets a white background is displayed. anyone can tell me how i can make these turn black ? thank you in advance, michael. oh i almost forgot ..... the site is www.naproduction.com The bgcolor of a table works in Iexplorer but not in Firefox. Also the left/right/topmargin doesnt work at all in Firefox. Any idea how this is? Thanks for your help --khan http://matc.studentsites.net/restorf...nal/index.html I can't get my bgcolor to display in the main content table. I tried adding it to the tr, td, and the style sheet. Nothing seemed to work. Works fine in IE and Opera. Any ideas? Edit: Also my text in the footer isn't formating. hello, i have seen on alot of web pages some kind of radial bgcolor of page,where at the top of page it's alot white and as you scroll down the page it gets darker and darker. does anyone knows what is this about? thanks Hi, I am trying to solve this for few days, but i cant slove it, so frustrated and nervous. Following is my coding: <select name="lang" onChange="form.redirect.value='index.html'; form.submit()" > <option value=0>English</option> <option value=1>English</option> <option value=2>Francais</option> <option value=3>Castellano</option> <option value=4>Deutsch</option> </select> how can i set English as default? yet user can see the Word "English" appear as deafult. HElp me please..Thanks and appreciate for your help :-) I have a document with objects positioned with Absolute values. I want to center the page vertically and horizontally. Is there any way to change the default X and Y, so that the page will display where I want it to? Thank so much. Rick I was just curious when I make a form element, if there is a default name that is set to that form if I do not use the "name=" attribute". I'm trying to put default values in my Input fields, which are text fields, of course, but I have numeric input values so I want them on the right. Is there any way to do this? here's a snippet of my code so's you can see what I mean: <form action="" id="calculate_form"> <div> <table style="width: 937px; height: 438px;"> <tbody> <tr> <td> Height: (Metres) </td> <td style="text-align: center; vertical-align: top;"> <p><input value="0" name="height" id="height" /> </p> </td> <td> Cement Price/20kg Bag<br /> </td> <td><input value="7" name="cementprice" id="cementprice" /></td> </tr> <tr> <td>Breadth: (Metres)</td> <td style="text-align: center; vertical-align: middle;"> <p><input value="0" name="breadth" id="breadth" /> and so on........... Perhaps it can't be done in HTML? In that case, what could it be done in? i've got a javascript script on this page, to do the calcs. Hi Hope someone can help. I am new to HTML and i am a bit stuck. I have written a Java script to populate a text box with the contents of a directory and what I want to do is to display a gif or picture whilst the data is getting retrieved. My code is (it is in a grid) <TD><textarea name="files" cols="50" rows="20">test</textarea></TD> What I want is to have the box show a pic as default until the script loads the data. Thanks Paul I've got a website here that's split into two frames. The top frame is the header and the bottom frame is the page body. When I print, it only seems to print the header. How can I get it to print the body by default (i.e. without clicking on the body first)? Is this code necessary if I only need zero for all of these, in any given table? Is zero the default setting if none is set? Can I just eliminate this code? FYI (It came as part of a table template.) border=0 cellpadding=0 cellspacing=0 style="margin-top:0;" Hi Guys, I need to display a default image if a user doesn't upload one eg: :::::::::Current Code::::::: <img src="{src}" {width} {height} border="0" hspace="0" alt="{alt}"> //shows the image if a user uploads one How can i alter the code so that if a user doesnt upload one it defaults to images/default.gif Thanks So i'm trying to change some of my default link colours, but everything that I have tried so far hasn't worked. Right now, I have this piece of code in my body tag. HTML Code: link="#00CC33" I don't know if it is correct or not, but how do I change the link colour? I've tried searching, but have had no luck at all. On as in pre-selected when a page loads... Ok here is my story i have a really good page page for my pc but when i try and open it on my iphone it looks really bad. I have created an iphone web page but i don't want to have to type the address into the address bar. I am running iis5 on windows xp Cheers Gozy I have a tabbed content box using jQuery, but I want to show HTML upon loading that is not one of the actual tabs. Here is my code so far. Code: <div id="tabs_container"> <ul id="tabs"> <li><a class="imgrep exceed" href="#tab1">tab1</a></li> <li><a class="imgrep fun" href="#tab2">tab2</a></li> <li><a class="imgrep envelope" href="#tab3">tab3</a></li> <li><a class="imgrep love" href="#tab4">tab4</a></li> <li><a class="imgrep ceo" href="#tab5">tab5</a></li> <li><a class="imgrep embrace" href="#tab6">tab6</a></li> <li><a class="imgrep shoes" href="#tab7">tab7</a></li> <li><a class="imgrep celebrate" href="#tab8">tab8</a></li> </ul> </div> <div id="tabs_content_container"> <!-- code I want to show as the default slide --> <div class="tab_content" style="display: block;"> <div id="inside_content"> <p class="inside_h"><span style="color: #00a7d1;">Our Recipes for Success</span></p> <p class="inside_p">Whether it's a simple assignment or basic interaction with one of the members, our goal is not to just be good, but be better than great.</p> </div> </div> <!-- end default code --> <!-- Tab 1 --> <div id="tab1" class="tab_content"> <div id="inside_content"> <p class="inside_h"><span style="color: #00a7d1;">Exceed Expectations everyday.</span></p> <p class="inside_p">Whether it's a simple assignment or basic interaction with one of the members, our goal is not to just be good, but be better than great.</p> <ul id="ingredients"> <li>ingredients:</li> <li>2 determination</li> <li>1 positive attitude</li> <li>2 self-motivation</li> <div id="logo-blue"></div> </ul> </div> </div> <!-- Tab 2 --> <div id="tab2" class="tab_content"> <div id="inside_content"> <p class="inside_h"><span style="color: #d18c02;">Have fun.</span></p> <p class="inside_p">We get to do the unthinkable - work and have a good time. We share that philosophy through. Fun is what makes it so invaluable.</p> <ul id="ingredients"> <li>ingredients:</li> <li>1 passion</li> <li>3 positive attitude</li> <li>1 goofyness</li> </ul> </div> </div> ... more tabs... Hi, I am learning HTML and CSS from scratch and I am curious about what the default values are for the many HTML tags that are available. For example, what is the default family-font and font-size for the "body" tag? Thanks, Is it possible to start a page scrolled down a certain amount automatically? Not through a link, just so that whenever someone visits the site, it is scrolled down that default amount? Thanks! [SOLVED!] I have a basic input box with a default value of "Enter Your Email Address". I am looking to have that clear as soon as the user clicks in the text area to type their address. Any suggestions on how to do this? |