CSS - Need Help Changing A 2col Layout
I have an existing two column layout that uses a 175px left border to create the column. This layout is terrible. It creates all kinds of problems in Firefox. I just need to make it more simple. I know there are better ways to create a 2col layout, if some of CSS experts here could help, I'd be grateful. Also, all divs have to stay in their place in the code. The page is here
Similar TutorialsHi, I am very inexperienced with web-editing. I want to use lightweight-image-gallery-with-thumbnails (its first option when googling this) but would like to edit it a bit. I have played around with the code a bit but don't get it to work as I want. I am trying to get the main image at the top and the thumbnail gallery below it, as it is now the thumbnails are to the left of the image to be shown: there is some nifty javascript for this also but the the css code is: <style media="screen,projection" type="text/css"> /* general styling for this example */ * { margin: 0; padding: 0; } body { padding: 20px; } /* begin gallery styling */ #jgal { list-style: none; width: 200px; } #jgal li { opacity: .5; float: left; display: block; width: 60px; height: 60px; background-position: 50% 50%; cursor: pointer; border: 3px solid #fff; outline: 1px solid #ddd; margin-right: 14px; margin-bottom: 14px; } #jgal li img { position: absolute; top: 20px; left: 220px; display: none; } #jgal li.active img { display: block; } #jgal li.active, #jgal li:hover { outline-color: #bbb; opacity: .99 /* safari bug */ } /* styling without javascript */ #gallery { list-style: none; display: block; } #gallery li { float: left; margin: 0 10px 10px 0; } </style> Any help would be most appreciated... Thanks Hello, I am using an OS Commerce layout for a client's website. On this page - www.mts-diesel.com you will see how I have the homepage laid out in anticipation of design, with 3 divs of varying colors. One div with an id of #hp_left is where I want to put a nice jquery code. But when I insert that into #hp_left it breaks the whole layout, was seen here www.mts-diesel.com/index2.php I'm not sure what in the css in the code for this script is breaking my layout but Ithought someone here might be willing to shed some light. A big thank you. Tom I am working on the new home page which is based on a template. The left sideColumn is working fine, however I am having a few problems with the mainColumn layout. Here is a static image to show what I want it to look like Here are the problems I am having: 1) The #scroll box is place where I want it in IE but in foxfire it is right up against the left side of the #sideColumn partially hidden. There will be text that scrolls into this box and stops. I haven't started on the part yet - in case that makes a difference. Not my choice, but that is what the bosses want. 2) I want the image centered horizontal within the #mainColumn. Here is what I have for the css: #home img { margin: 5px auto 5px auto; } which I thought would do the trick, but it's not. 3) I want the p text to have a 40px margin on the right and left side like the .large does. Here is what I have for the css: #home p, .large { margin: auto 40px auto 40px; } It works for the .large (Welcome to Vitalograph), but not for the text below it. At one point I had it working, but after addtional changes fixing other problems, now it doesn't and I can't figure out why. Here is the xhtml starting at the 2 column part (wrapper): Code: <!--begin wrapper--> <div id="wrapper"> <!--begin side column --> <div id="sideColumn"> <span class="category">Products</span> <ul> <li><a href="/products/spirometers.html">Spirometers</a></li> <li><a href="/products/clinical_trials.html">Clinical Trials</a></li> <li><a href="/products/asthma_copd.html">Asthma & COPD</a></li> <li><a href="/products/smoking_cessation.html">Smoking Cessation</a></li> <li><a href="/products/resuscitaion.html">Resuscitation</a></li> </ul> <span class="category">Resources</span> <ul> <li><a href="/resources/contact_us.html">Customer Support</a></li> <li><a href="/resources/training_services.html">Training & Services</a></li> <li><a href="/resources/exhibitions.html">Exhibitions</a></li> <li><a href="/resources/newsletters.html">Newsletters</a></li> <li><a href="/resources/downloads.html">Downloads</a></li> <li><a href="/resources/useful_links.html">Useful Links</a></li> <li><a href="/resources/industry_information.html">Industry Information</a></li> <li><a href="/resources/industry_information.html">Sitemap</a></li> </ul> </div> <!--end of side column --> <!--begin main column --> <div id="mainColumn"> <!-- InstanceBeginEditable name="Main_Section" --> <div id="home"> <div id="scroll"><span>scrolling news will go hear and stop</span></div> <img src="/images/boys_bubbles.gif" width="485" height="333" alt="boys and bubbles" /> <span class="large">Welcome to Vitalograph</span> <p>Vitalgraph offers a wide range of spirometers along with other asthma management equipment with over 40 years experience. From simple hand-held units to sophisticated Windows based spirometry systems, we have it all. Check out our full line of respiratory equipment under the product category.</p> <p><a href="/about_us/about_us.html">more about us...</a></p> </div> <!-- InstanceEndEditable --> </div> <!--end of main column --> </div> <!--end of wrapper--> Here is the vitalograph_master.css: Code: body { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; text-align: center; background-color: #ffffff; color: #515151; margin:0px; padding:10px; } /*page container settings*/ #page { width: 750px; height: 600px; border: 1px solid #5094F9; background-color: #FFFFFF; overflow: hidden; margin: auto; padding: 10px 10px 10px 10px; text-align: left; } /*logo header and tag settings*/ #header { margin: 0; padding-bottom: 5px; width: 450px; height: 36px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #5094F9; text-align: left; } #header img { vertical-align: -7px; } .tagline { color: #5094F9; font-size: 16; font-style: italic; font-weight: bold; display: inline; clear: both; line-height: 20px; margin-left: 10px; } /*top bar settings*/ #topbar { float: top; height: 20px; background-color: #5094f9; clear: both; padding-left: 10px; text-align: left; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #FFFFFF; font-size: 12px; font-weight: bold; } #topbar a:link, #topbar a:visited { background-color: inherit; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; text-decoration: none; color: #FFFFFF; font-size: 12px; font-weight: bold; } #topbar a:hover, #topbar a:active { background-color: #FFFFFF; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; text-decoration: none; color: #5094F9; font-size: 12px; font-weight: bold; } #topbar ul { list-style: none; margin: 0; padding-top: 2px; } #topbar li { display: inline; margin-right: 160px; } /*Main Section two columns under top section*/ #wrapper{ padding: 10px 10px 10px 0px; width: 100%; height: 100%; } #sideColumn { float:left; width:155px; height: 78%; background-color: #5094F9; padding-top: 50px; padding-left:10px; padding-bottom:10px; pading-right: 10px; margin-right: 10px; text-align: left; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #FFFFFF; font-weight: bold; line-height: 20px; } .category { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #FFFFFF; font-size: 16px; font-weight: bold; letter-spacing: 5px; } #sideColumn a:link, #sideColumn a:visited { background-color: inherit; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; text-decoration: none; color: #FFFFFF; font-size: 12px; font-weight: bold; } #sideColumn a:hover, #sideColumn a:active { background-color: #FFFFFF; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; text-decoration: none; color: #5094F9; font-size: 12px; font-weight: bold; } #sideColumn ul { list-style: none; padding: 15px 0px 15px 10px; margin: 0px; } #mainColumn { padding: 0px; } /*footer*/ .footer { font-family: "Times New Roman", Times, serif; font-size: 9px; color: #999999; } /*text*/ .large { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #5094F9; font-size: 18px; font-weight: bold; margin-bottom: 15px; } Here is the home.css: Code: /*home page*/ #home { margin: auto; } #home img { margin: 5px auto 5px auto; } #home p, .large { margin: auto 40px auto 40px; } #home a:link, #home a:visited { background-color: inherit; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; text-decoration: none; color: #5094F9; font-size: 12px; font-weight: bold; } #home a:hover, #home a:active { background-color: inherit; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; text-decoration: none; color: #990099; font-size: 12px; font-weight: bold; } #scroll { width: 560px; padding: 5px; background-color: inherit; border: 1px solid #5094F9; margin-bottom: 5px; } Any help or suggestions are greatly appreciated. Hi there and thanks for reading & helping! I am new to this site, but here is my question: I need to build about a 20 page website. I have been told I should do the "layout" for each page using CSS. Is it possible for each page to "link" to one CSS file for layout instructions? I have found suitable CSS layout templates but am unsure how to link each page to the external CSS file for a basic "header, 2 column, footer" layout, or if it is even possible? hey all, so im way behind the times when it comes to creating webpages with div's instead of nested and renested tables. I can nest tables with the best of them but when it comes to using div's and css instead i just can't figure out how to precisely place things! Does anyone know of a guide that explains how to use divs effectively instead of tables? thanks - legit Hi am looking for help changing a form select box with css. I am trying to get the select box in line with the rest of the scroll boxes and arrows on my site.... http://www.peteromoore.com/site3/brochure.htm is there any way to change the select box arrow to match the arrow beside it??? any help would be appreciated. I have a header.inc and a css style sheet that are called to each page of a website via php. In the style sheet there are two styles that I would like to change depending on the section of the website. For example: in the style sheet css id "subnav" has background: #E8EDF5 and cssi id "subtitle" has background #E8EDF5 however in each major section of the website I would like to change the background colors of the divs that have id "subnav" and "subtitle". Is there type of php statement that I could place at the top of my website pages that would allow me to specify the colors of these two css ids? Hope I have made this clear. Anyone know why the margins change on the links when I hover over them with IE. (check left column navigation) http://section31.us/temp/tortilla/tortilla.html Note: This works fine on firefox, but goes ape**** on IE. I'm revamping my personal webpage. (What I've done so far is at http://homepage.mac.com/johntstuart/mockup/ ) I've been told there is a way for JavaScript to replace the content of a DIV, when the user selects from the navigation. Can anyone point me in the direction of this JavaScript? And any tutorials? Hi, how can I set the <a> tag (of <a href...) to be of some color in one div and some other color in another div? I need some help. I'm starting out with php and i'm already stressing out. Here's the challenge: I have to make a page that contains 3 radio buttons the radio buttons control which color font you'll like to display on that page the page must reference itself (no outside css stylesheet) I must use the switch function to switch the stylesheet. So far, this is what I have. Can someone help me figure out what I'm doing wrong? Thank you. Dan --------------clipping starts here--------------------- <html> <head> <title></title> <body style="font-family:Arial, Helvetica, sans-serif; color: green;"> </table> <tr> <td> <form name="stylecolor" method=POST" action asgn_2j.php"> Green <input type="radio" name="style" value="a"> Blue <input type="radio" name="style" value="b"> Red <input type="radio" name="style" value="c"> <INPUT TYPE=HIDDEN NAME=stylecolor VALUE=true> <INPUT TYPE=submit NAME="SUBMIT" VALUE="Submit"> $stylecolor=$HTTP_POST_VARS['stylecolor']; switch($stylecolor) { case 'a' echo '(<body style="font-family:Arial, Helvetica, sans-serif; color: green;">)' ; case 'b' echo '(<body style="font-family:Arial, Helvetica, sans-serif; color: blue;">)' ; case 'c' echo '(<body style="font-family:Arial, Helvetica, sans-serif; color: red;">)' ; default: echo 'you didn't choose' ; break; } </form> </td> </tr> </table> </body> </html> Hello, I have been looking all ovet the forums and google and cant find a code to do this. what i am trying to do is when someone prints a page, i want the footer that is automataly printed at the bottom of the page to change. Lets say your on www.yahoo.com and you print the page. the footer will say http://www.yahoo.com what i am trying to find is a code that i can change the footer to say whatever i wanted. so if your on yahoo.com and press print it says "HELLO" (for example). Thanks In Advance. I've changed how links are rendered - problem is that I can't stop same thing being done on images as links. Code: a { text-decoration: none; border-bottom: 1px dotted; } a:hover { text-decoration: none; border-bottom: 1px solid; } And it works great on ordinary links (<a href="#">Text here</a>) but I cant turn it off when I have an image as a link (<a href="#"><img ... /></a>). I tried this : Code: a img { border: none; /* tried border: 0px; also */ } img { border: none; /* tried border: 0px; also */ } And it doesn't work The only way I could achive the result is to specify an class for each link: Code: .img-link { border: none; } .img-link:hover { border: none; } // in HTML <a href="#" ... class="img-link"><img ... /></a> Hello first of all I'm new here Well I have a linked css file where I define some basic style for <a> tag. But there are some <div> where I want to override the basic <a> defines and I have no idea how. Here is what I mean: Code: a{ color: #ffffff; } .someDivClass{ ..some defines.. But here I also want to make <a>'s color red for example. } Hope you understood me Thanks a lot. Greetings I hope the title wasn't too confusing. If not this is sure to be. What I have is and Unordered List that has a heading in each List Item and then a few items under that. The List Items are links arranged in a grid that have a hover effect on mouseover. Due to the colors I want the heading (in this case h2) in each li to change color on the a:hover (the hover over anywhere on each li, not just over the h2 text). How can I achieve this? Here is some code to (hopefully) clarify: Code: #lower { width: 765px; float: left; margin-top: 10px; margin-right: 0px; margin-bottom: 0px; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 20px; padding-left: 0px; } #lower ul { width: 775px; list-style-type: none; margin: 0; padding: 0px; } #lower ul li { font-family: "Trebuchet MS"; font-size: 14px; width: 250px; float: left; } #lower ul li a { text-decoration: none; display: block; height: 125px; color: #262626; } #lower ul li a:hover { background-color: #5B8C3E; color: #D9D9D9; } #lower h2 { font-family: "Trebuchet MS"; font-size: 16px; margin: 0px; color: #262626; } #lower a h2:hover { color: #D9CE3F; } As is the h2 only changes when it is directly hovered, not the the li. Thanks in advance for your help. i am sorry 2 have wasted ur time why cant i delete my threads anymore I don't know if this is possible but I want to change the background color of some tables programmaticly basically what's happening is I'm ruining some asp.net code which is checking to see if something is approved or not. if it's approved then I want to change the color of the background for one of the HTML tables. if it's not approved then i want to leave it as the default background color. is there a way to do this? Thanks for the help Ok I simply cannot figure this one out. All I'm trying to do is change the font color so that the text like "Choose a Username" is not black but white. Here is the link to the page http://www.technicalhypnotherapy.com/wordpress/?page_id=128 This is my CSS. I think the more relevant tags are the last ones. Code: /* Theme Name: Pixel Theme URI: http://85ideas.com/public-releases/wordpress-theme-pixel/ Description: Dark WP theme with 2-3 column layout, dropdown categories menu, multiple widget-ready placement and Feedburner email form integrated, easy to customize. Enjoy! Author: Sam @ 85ideas.com Author URI: http://85ideas.com/ Version: 2.0.2 Tags: black, blue, three-columns, two-columns, threaded-comments, fixed-width, theme-options, right-sidebar, sticky-post . Released under <a href="http://www.opensource.org/licenses/gpl-license.php">GPL</a>. . */ /* Defaults */ * { margin: 0; padding: 0; } :focus { outline:0; } h1, h2, h3, h4, h5, h6, p { margin: 0; padding: 10px 0; } h1, h2, h3, h4, h5, h6 { font-family: Verdana; } hr { color: #333; border: 1px solid #121212; } pre { height: auto; overflow-x:scroll; } fieldset { margin: 0; padding: 0; border: 0; } dd { padding-left: 15px; } p { font-size: 9pt; } a { color: #6598b8; text-decoration: none; } a:hover { color: #222; text-decoration: underline; } a img { border: none; } blockquote { background: #070707; border: 1px solid #060606; padding: 5px 15px; margin: 10px 10px 5px 15px; font-style: italic; color: #fff; } code { color: #3366cc; font-style: italic; } strong { font-size: 110%; } body { text-align: center; margin: 0; padding: 0 0 15px 0; font-family: trebuchet ms, arial, helvetica, sans-serif; background: #000 url(images/bgbody.jpg) top center no-repeat; color: #eee; } /* Header and wrapper */ #wrapper { margin: 0 auto; width: 960px; text-align: left; padding: 0; } #header { padding: 0; margin: 0; height: 80px; text-shadow: 0 0 4px #555; } #header #topright { text-align: right; float: right; width: 930px; margin: 3px 0 0 0; } #header #topright ul { list-style: none; padding: 0; margin: 0; } #header #topright li { display: inline; } #header #topright li a { color: #fff; font-size: 9pt; padding: 0 0 0 25px; text-transform: lowercase; } #header #topright li a:hover { color: #ccc; text-decoration: none; } #header #logo { margin: 0; padding: 0; } #header h1 { padding: 0; margin: 0; } #header h1 a { color: #fff; font-size: 17pt; text-decoration: none; } #header h1 a:hover { color: #eee; text-decoration: none; } #header span { padding: 0; color: #eee; font-size: 10pt; } /* Menu */ #catnav { margin: 20px 0 0 0; padding: 0; clear: both; height: 44px; width: 960px; } #nav { list-style: none; margin: 0; padding: 0; } #nav ul { margin: 0; padding: 0; } #nav li { float: left; margin: 0; padding: 0; } #nav a { display: block; line-height: 44px; margin: 0; padding: 0 20px 0 15px; font-size: 10pt; color: #fff; letter-spacing: -1px; } #nav li a:hover { color: #6598b8; text-decoration: none; display: block; } #nav li ul { list-style: none; position: absolute; width: 150px; left: -999em; } #nav li:hover ul, #nav li.sfhover ul { left: auto; } #nav li li { float: left; margin: 0; padding: 0; width: 150px; } #nav li li a { width: 150px; height: 24px; line-height: 24px; color: #fff; border-top: 1px solid #131f27; background: #040404; margin: 0; padding: 5px 20px 5px 15px; } #nav li li a:hover { border-top: 1px solid #131f27; background: #000; padding: 5px 20px 5px 15px; } #nav li:hover, #nav li.sfhover { /* prevents IE7 drop-down menu bug (focus on a page element prevents nested menus from disappearing) */ position: static; } #toprss { float: right; margin: 10px 15px 0 0; display: inline; width: 65px; line-height: 41px; } /* Top Content */ #main { margin: 5px 15px 0 15px; clear: both; width: 930px; padding-bottom: 5px; } #contentwrapper { float:left; width: 560px; margin: 0 0 15px 0; padding: 0; } #contentwrapper2 { float:left; width: 900px; margin: 0 0 15px 0; padding: 0; } #contentwrapper .pageTitle, #contentwrapper2 .pageTitle { margin: 15px 0 10px 0; font-size: 14pt; letter-spacing: -1px; color: #fff; font-weight: normal; background: url(images/bg-trans.png) repeat; padding: 5px; } .topPost { margin: 0; padding: 0; font-size: 9pt; } .topPost h2.topTitle a { font-size: 15pt; font-weight: normal; color: #fff; letter-spacing: -2px; } .topPost h2.topTitle a:hover { text-decoration: none; color: #abd1ea; } .topPost p.topMeta { padding: 0; margin: -10px 0 0 0; font-size: 9pt; color: #cdcdcd; } .topPost p.topMeta a { text-decoration: none; color: #fff; } .topPost p.topMeta a:hover { color: #ccc; text-decoration: underline; } .topPost div.topContent { font-size: 9pt; color: #efefef; margin: 8px 0; } .topPost div.topContent p { font-size: 1.05em; line-height: 1.6em; } .topPost div.topContent a { text-decoration: underline; color: #fff; } .topPost div.topContent a:hover { text-decoration: underline; color: #ff9933; } .topPost div.topContent ul, .topPost div.topContent ol { padding: 0 0 0 30px; } .topPost div.topContent ul li, .topPost div.topContent ol li { font-size: 1.05em; color: #eee; } .topPost span.topComments, .topPost span.topMore, .topPost span.topTags { font-size: 9pt; font-style: italic; background: url(images/bg-trans.png) repeat; padding: 8px 10px; margin-right: 5px; line-height: 27pt; color: #fff; border: 1px solid #111; } .topPost span.linkpages { font-size: 9pt; font-style: italic; color: #fff; margin-bottom: 10px; display:block; } .topPost span.linkpages a:hover { color: #ddd; } .topPost span.topComments:hover, .topPost span.topMo hover, .topPost span.topTags:hover { background: #040404; } .topPost span.topComments a { color: #fff; background: url(images/comments.gif) left no-repeat; padding-left: 20px; line-height: 27pt; vertical-align: middle; } .topPost span.topMore a { color: #fff; background: url(images/more.gif) left no-repeat; padding-left: 20px; line-height: 27pt; vertical-align: middle; } .topPost span.topTags em { background: url(images/tags.gif) left no-repeat; padding-left: 20px; line-height: 27pt; vertical-align: middle; color: #0a0a0a; } .topPost span.topTags a { color: #fff; line-height: 27pt; vertical-align: middle; } .topPost span.topComments a:hover, .topPost span.topMore a:hover, .topPost span.topTags a:hover { color: #fff; text-decoration: underline; } #nextprevious { margin: 10px 0 5px 0; } #nextprevious a { color: #eee; text-transform: lowercase; border: 1px solid #111; padding: 5px 8px; font-size: 10pt; line-height: 1.4em; } #nextprevious a:hover { color: #fff; } /* Comments */ #comments { margin-bottom: 10px; margin-top: 15px; background: #040404; width: 530px; /* fixes bug in IE7 where putting focus on the text makes it disappear behind the background. yeah, weird. they call it a dimensional bug. */ border: 1px solid #090909; padding: 0px 15px 10px 15px; color: #fff; } #comments h3 { font-size: 10pt; font-weight: normal; color: #fff; margin: 15px 0; padding: 0; } #comments p a { color: #6598b8; } #comments p a:hover { color: #fff; } #comments p { padding:0; margin: 7px 0; } ul.commentlist, ul.trackback { list-style-type: none; margin: 10px 0; font-size: 9pt; } .commentlist li, .trackback li { margin: 10px 0 15px 0; padding: 10px; background: #080808; border: 1px solid #040404; list-style-type: none; } .commentlist li.alt { background: #000; border: 1px solid #020202; border: none; margin-top:10px; } .commentlist li.cleared { background: transparent; border: none; } .commentlist a:hover { color: #eee; } .commentlist a.gravatar { float: left; margin: 0 15px 10px 0; width: 60px; } .commentlist .commentbody { margin: 0; padding: 0; } .commentlist .commentbody p a { text-decoration: underline; } .commentlist cite { font-size: 10pt; font-style: normal; color: #ddd; } .commentlist small.commentmetadata a { color: #666; } .commentlist p { color: #dedede; } #respond { clear: both; margin-top: 15px; } textarea#comment { width: 450px; background: #fff; color: #111; padding: 10px; } #comments #submit { margin: 0; } #extrastuff a {color:#999; font-size:0.8em;} #extrastuff a:hover {color:#6598b8; text-decoration:none;} #extrastuff #rssleft {float:left; width:250px;} #extrastuff #trackright {float:right; width:180px; text-align:right;} /* Welcome section */ #main #welcome { margin: 0 0 20px 0; padding: 0 0 5px 0; background: url(images/bg-trans.png) repeat; } #main #welcome h2 { font-size: 14pt; font-weight: normal; color: #fff; letter-spacing: -2px; margin: 0 10px; padding: 10px 0 3px 0; } #main #welcome p { font-size: 9pt; color: #eee; margin: 0 10px; padding: 6px 0; } #main #welcome a { text-decoration: underline; color: #ff9933; } #main #welcome a:hover { color: #6598b8; } #main #welcome form { margin: -5px 0 0 0; background: transparent; /* required for IE */ } #main #welcome #feedbox { border: 1px solid #ccc; padding: 2px 1px; width: 180px; } .submitbutton { margin: -5px 0 0 5px; background: #010101; color: #fff; font-size: 8pt; padding: 3px 6px; vertical-align: middle; border: 1px solid #111; } .submitbutton:hover { cursor: pointer; background: #050505; } /* Sidebars */ #sidebars { margin: 15px 0 0 0; float: right; width: 340px; color: #eee; } #sidebars .sidebarbox { background: url(images/bg-trans.png) repeat; padding: 8px 15px; } #sidebar_full { padding: 0; margin: 0; } #sidebar_left { float: left; width: 160px; } #sidebar_right { float: right; width: 160px; } #sidebars h2 { margin: 0; padding: 0 0 8px 0; font-weight: normal; font-size: 11pt; color: #fff; letter-spacing: -1px; } #sidebars table { width: 130px; } #sidebars ul { margin: 0; padding: 0 0 5px 0; } #sidebars li { margin-bottom: 20px; list-style: none; font-size: 9pt; } #sidebars li ul { padding: 0; } #sidebars ul ul li { margin: 0; padding: 2px 2px 2px 16px; color: #eee; background: url(images/bullet.gif) left 8px no-repeat; line-height: 17px; /* Required for cross-browser consistency; cross-browser defaults vary. */ } #sidebars a { display: inline; color: #eee; } #sidebars a:hover { color: #6598b8; text-decoration: underline; } #sidebars p { padding: 2px 0; font-size: 9pt; color: #eee; } #tag_cloud a { display: inline; } #sidebars ul.children li {border-bottom:none;} #sidebars ul.children {margin-bottom:0;} /* Before footer */ #morefoot { background: #000 url(images/bggrad.jpg) top left repeat-x; border: 1px solid #070707; padding: 15px; color: #dfdfdf; margin: 0 0 10px 0; } #morefoot p { margin: 5px 0; padding: 5px 0; } #morefoot ul { list-style-type: none; margin-top: 5px; } #morefoot ul li, #morefoot p { font-size: 9pt; } #morefoot a { text-decoration: underline; color: #ddd; } #morefoot a:hover { text-decoration: underline; color: #6598b8; } #morefoot h3 { font-size: 12pt; font-weight: normal; color: #dfdfdf; letter-spacing: -1px; border-bottom: 1px dotted #444; margin: 0; padding: 0 0 2px 0; } #morefoot #searchbox { padding: 1px; width: 180px; } #morefoot .col1 { float: left; width: 340px; } #morefoot .col2 { margin: 0 25px; } #morefoot .col2, #morefoot .col3 { float: left; width: 260px; } #morefoot li { padding-left: 20px; margin-bottom: 5px; background: url(images/more.gif) left 2px no-repeat; line-height: 17px; /* Required for cross-browser consistency; cross-browser defaults vary. */ } /* footer*/ #footer { clear: both; background: #000; border: 1px solid #070707; padding: 15px 15px 10px 15px; } #footer p { font-size: 9pt; color: #bbb; padding: 0; } #footer a { color: #bbb; text-decoration:none; } #footer a:hover { color: #fff; } #footerleft { float: left; width: 500px; } #footerright { float: right; width: 300px; text-align: right; } /* Misc */ .highlight { color: #222; font-weight: bold; } .cleared { margin: 0; padding: 0; clear: both; } .alignleft { float: left; margin: 10px 15px 5px 0; } .alignright { float: right; margin: 10px 0 5px 15px; } .aligncenter, div.aligncenter { margin: 10px auto; text-align: center; display: block; } img.alignleft { float: left; margin: 10px 15px 5px 0; } img.alignright { float: right; margin: 10px 0 5px 15px; } img.aligncenter { margin: 10px auto; text-align: center; display: block; } .wp-caption { border: 1px solid #ddd; text-align: center; background-color: #f3f3f3; padding-top: 4px; /* optional rounded corners for browsers that support it */ -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; } .wp-caption img { margin: 0; padding: 0; border: none; } .wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; padding: 0 4px 5px; margin: 0; color: #111; } #reg-form .formleft { background: none !important; color: #fff;} #account-form { background: none !important; color: #fff;} hi, iam having a div tag in that div i have table.. <div style="width:658;height:265px; overflow:auto;" > <table> </table> </div> now i need to change the color of scroll bar of this div tag. i tried with this the css .myScrollBar { scrollbar-face-color: #FF0000; scrollbar-shadow-color: #0000FF; scrollbar-highlight-color: #00FF00; scrollbar-3dlight-color: #FF00FF; scrollbar-darkshadow-color: #00FFFF; scrollbar-track-color: #FFFF00; scrollbar-arrow-color: #000000;} <div style="width:658;height:265px; overflow:auto;" id='myScrollBar'> but its not working.. Regards, |