CSS - Software Question (??css Selector Viewer??)
For a project I'm currently doing I'd like a set of quick reference sheets that I can print out of all the Selectors I have created in the various style sheets the site uses.
I'd like to know if there is any program out there that can do this automatically for me, I really like the way TopStyle does it -- see attached image -- but there is no way to print this easily (other than doing a screenshot and making it fit on A4 in photoshop). I know I could do it by hand as I go but it would be sooooo much easier if there was something to do it automatically for me. Any help is greatly appreciated. -D Similar TutorialsHi! Let's say we have this situation: Code: <div> <div class="second"> </div> </div> Is there a way to grab in CSS the first div with the help of the class second? I mean, something like this: div .second (now I get the second div but I want the first). I don't think it is possible... that's a real pity. Im I wrong? Thanks! Greetings, friends! I have a quick question about CSS. I am fairly versed in CSS 2.0 and the selectors that are used within. However, I am not sure if any specific type of selector is available to help me do what I want. I am looking for a selector that will define styles for an element that contains specific children. To give you an example, let's say that I have an image on my page. That image is assigned the class of "alignleft". Now, let's say that I make that image into a link. I would like to find a CSS selector that allows me to assign style definitions to that link. Let's say my code looks like: Code: <a href="http://www.example.com/"><img src="example-pic.png" class="alignleft" alt="Example Picture" /></a> Now, I know if it was the other way around: Code: <a class="alignleft" href="http://www.example.com/"><img src="example-pic.png" alt="Example Picture" /></a> I could use something like: Code: .alignleft > img However, I am not sure if there is any way to go up a level in CSS. I would envision it looking something like: Code: a < img.alignleft but I can't find anything in the CSS spec that refers to instances like that. Does anyone know of anything? For instance, I would want a spec that looks something like: Quote: E < F - Matches any E element that is the parent of an element F. The specific reason I'm looking for something like this is that I am using the class of "external" to assign a background image to all of my links that lead away from our Web site. However, if that link is an image rather than text, I want to set the background of my link to "none" so that the background image does not interfere with the image itself. Any help would be greatly appreciated. Thank you. Hi everyone, Been racking my brains trying to figure out why a class is not being applied to a div, then i narrowed it down and realised that the ID selector is always taking precedence to the class attribute. Consdier this html page: Quote: <!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>Test Page</title> <style type="text/css"> #container { background-color: red; width: 100px; height: 50px; } .change_bg { background-color: green; } </style> </head> <body> <div id="container" class="change_bg" ></div> </body> </html> The div's background color comes out red and not green, as one would expect. Why is this happening? aren't styles supposed to be cascading? isn't that what CSS is all about? I can use !important but i want to know why it's not doing what is expected. Many thanks Tip of the tongue syndrome: What is the CSS selector that affects all elements, again? I remember it being "*" or something I want to apply a thin border to everything on my layout so I can see where the positionings have gone. I 'think' style sheets are the answer to my problem. Now I cannot webdesign and so everything is a mishmash but I saw this accordion image viewer made in AJAX for free and wanted to put it on my site, but I need to position it in an exact position on my webpage. How do I do this please? Accordion: http://www [dot] ajaxcrawler [dot] com/2008/01/image-menu-using-moo-tools [dot] html My webpage: http [colon] // lovelago.googlepages [dot] com/test7a.html CSS: http [colon] // lovelago.googlepages [dot] com/main.css Also, I only need a really trim version of this CSS, as it came with the webpage that had the accordion and has all of its 'own style' that I do not need. Thanks to anybody! note to admin: I'm not a spammer, thanks. I would first like to say that I'm a noob to PHP. The problem that I am having is with my picture viewer. When you click on the thumbs, they show above in the main image viewer. The problem is that it is displaying the thumbnail instead of resizing the original image to fit the main image spot. When you click on the main image, the original pic is to be displayed in a lightbox. How do I go about fixing this issue? Thanks in advance for those who help! Code: http://conceptsinmotion.net/store/store?page=shop.product_details&flypage=flypage.tpl&product_id=1&category_id=17 PHP Code: <?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); ?> <?php echo $buttons_header // The PDF, Email and Print buttons ?> <?php if( $this->get_cfg( 'showPathway' )) { echo "<div class=\"pathway\">$navigation_pathway</div>"; } if( $this->get_cfg( 'product_navigation', 1 )) { if( !empty( $previous_product )) { echo '<a class="previous_page" href="'.$previous_product_url.'">'.shopMakeHtmlSafe($previous_product['product_name']).'</a>'; } if( !empty( $next_product )) { echo '<a class="next_page" href="'.$next_product_url.'">'.shopMakeHtmlSafe($next_product['product_name']).'</a>'; } } ?> <br style="clear:both;" /><center> <table border="0" style="width: 100%;margin-left: auto;margin-right: auto;"> <tbody> <tr align="right"> <td colspan="3" align="center"> <?php if( $this->get_cfg('showManufacturerLink') ) { $rowspan = 5; } else { $rowspan = 4; } ?> <div id="parent_img"><?php echo $product_image ?></div> <br/><br/> <?php if (count($images)): foreach ($images as $image){$curentwidth += $image->file_image_thumb_width;}?> <script type="text/javascript"> iens6=document.all||document.getElementById ns4=document.layers var speed=5 </script> <div id="scroll" style="margin-left: auto;margin-right: auto;"> <div class="box-left" style="width: 15px; float: left;margin:10px 0px 0px 0px"><a class="mouseover_left" onmouseover="movedown()" onmouseout="clearTimeout(movedownvar)" href="#"><img src="<?php echo JURI::root().'components/com_virtuemart/themes/vm_black/images/prev.png';?>" alt="" border="0" /></a></div> <span class="box-right" style="float: right;margin:10px 0px 0px 0px"><a class="mouseover_right" onmouseover="moveup()" onmouseout="clearTimeout(moveupvar)" href="#"><img src="<?php echo JURI::root().'components/com_virtuemart/themes/vm_black/images/next.png';?>" alt="" border="0" /></a></span> <div id="container" style="overflow: hidden; width: 50%; position: relative; height: 55px;float:center"> <div id="child" style="position: absolute; width: <?php echo $curentwidth;?>px; left: 0pt; top: 0pt;"> <ilayer name="nscontainer"> <layer name="nscontent" visibility="hidden"> <?php echo $this->vmlistAdditionalImages( $product_id, $images )?> </layer> </ilayer> </div> </div> <div class="box-right" style="float: right;margin:10px 0px 0px 0px"></div> </div> <script language="JavaScript1.2"> if (iens6){ var crossobj=document.getElementById? document.getElementById("child") : document.all.content var contentheight=crossobj.offsetWidth } else if (ns4){ var crossobj=document.nscontainer.document.nscontent var contentheight=crossobj.clip.width } function movedown(){ if (iens6&&parseInt(crossobj.style.left)>=<?php echo 64*count($images)*(-1)/5-32;?>) crossobj.style.left=parseInt(crossobj.style.left)-speed+"px" else if (ns4&&crossobj.left>=<?php echo 64*count($images)*(-1)/5-32;?>) crossobj.left-=speed movedownvar=setTimeout("movedown()",50) } function moveup(){ if (iens6&&parseInt(crossobj.style.left)<=0) crossobj.style.left=parseInt(crossobj.style.left)+speed+"px" else if (ns4&&crossobj.left<=0) crossobj.left+=speed moveupvar=setTimeout("moveup()",50) } function getcontent_height(){ if (iens6) contentheight=crossobj.offsetWidth else if (ns4) document.nscontainer.document.nscontent.visibility="show" } window.onload=getcontent_height </script> </td> <style type="text/css"> ul.box li{float:left;list-style:none;padding-left:0 !important} ul.box{width:100%;margin:0px;padding:0px;} li:hover img{opacity:1} </style> <script type="text/javascript"> function show_img(url) { var output1 = window.document.getElementById('curent').href=url; var output2 = window.document.getElementById('img_preview').src=url; return true; } </script> <?php endif;?><br /><br /> </tr> <tr align="right"> <td rowspan="1" colspan="3" align="right"> <h1 style="margin-left: auto;margin-right: auto;"><?php echo $product_name ?> <?php echo $edit_link ?></h1> </td> </tr> <?php if( $this->get_cfg('showManufacturerLink')) { ?> <tr align="center"> <td rowspan="1" colspan="3"><?php echo $manufacturer_link ?><br /></td> </tr> <tr align="center"> <td colspan="3"> </td> </tr> <?php } ?> <tr align="right"> <td colspan="3" align="center" valign="top"> <?php echo $product_price_lbl ?> <?php echo $product_price ?><br /></td> </tr> <tr align="right"> <td colspan="3" align="center" valign="top"><?php echo $product_packaging ?><br /></td> </tr> <tr align="center"> <td colspan="3"><?php echo $ask_seller ?></td> </tr> <tr id="browseProductDescription"> <td colspan="3" rowspan="1" align="center"><hr /> <?php echo $product_description ?><br/> <span style="font-style: italic;"><?php echo $file_list ?></span> </td> </tr> <tr align="left"> <td width="16%" align="left"><?php if( $this->get_cfg( 'showAvailability' )) { echo $product_availability; } ?><br /> </td> <td width="17%" align="right"><?php echo $addtocart ?></td> </tr> <tr align="center"> <td colspan="4"><?php echo $product_type ?></td> </tr> <tr align="center"> <td colspan="4"><hr /><?php echo $product_reviews ?></td> </tr> <tr align="center"> <td colspan="4"><?php echo $product_reviewform ?><br /></td> </tr> <tr align="center"> <td colspan="4"><?php echo $related_products ?><br /> </td> </tr> <?php if( $this->get_cfg('showVendorLink')) { ?> <tr align="center"> <td colspan="4"><div style="text-align: center;"><?php echo $vendor_link ?><br /></div><br /></td> </tr> <?php } ?> </tbody> </table></center> <?php if( !empty( $recent_products )) { ?> <div class="vmRecent"> <?php echo $recent_products; ?> </div> <?php } if( !empty( $navigation_childlist )) { ?> <?php echo $VM_LANG->_('PHPSHOP_MORE_CATEGORIES') ?><br /> <?php echo $navigation_childlist ?><br style="clear:both"/> <?php } ?> Code: /** * Main CSS file for the "black color" theme for VirtueMart * @copyright 2006-2008 soeren * @colortheme (C) 2008 gtwillemsen - surpass.nl * @license GNU/GPL * */ /* General Shop Styles here please */ .addtocart_button, .notify_button { text-align:center; background-position:bottom left; width:160px;height:30px; cursor:pointer; border: none; font-weight:bold; font-family:inherit; color: #ffffff; vertical-align: middle; overflow:hidden; } .addtocart_button { background: url( 'images/add-to-cart.png' ) no-repeat center transparent; } .notify_button { background: url( 'images/notify.png' ) no-repeat center transparent; } .addtocart_button_module { text-align:center; background-position:bottom left; width:160px;height:30px; cursor:pointer; color: #ffffff; border: none; font-weight:bold; font-family:inherit; background: url( 'images/transparent.png' ) no-repeat center transparent; vertical-align: middle; overflow:hidden; } input.addtocart_button_module:hover { color: #333333; } .addtocart_form { width: 100%; display: inline; white-space: nowrap; } /* The quantity box beneath the "add to cart" button */ .quantity_box { vertical-align: middle; } .quantity_box_button { width:10px; vertical-align:middle; height:10px; background-repeat: no-repeat; background-position: center; } .quantity_box_button_down { background-image: url(images/down_small.png); } .quantity_box_button_up { background-image: url(images/up_small.png); } .continue_link, .checkout_link { margin: 2px; padding: 2px 0px 2px 40px; vertical-align: middle; font-weight: bold; font-size: 1.4em; width: 40%; } .checkout_link { margin-left: 40px; background: url( 'images/forward.png' ) no-repeat left; } .continue_link { background: url( 'images/back.png' ) no-repeat left; } .next_page { background: url( 'images/next_16x16.png' ) no-repeat right; padding-right: 30px; line-height: 20px; float: right; width: auto; } .previous_page { background: url( 'images/previous_16x16.png' ) no-repeat left; padding-left: 30px; line-height: 20px; float: left; width: auto; } /* This is the text box informing customers about your returns policy */ .legalinfo { background: #cccccc; border: 2px solid gray; margin: 10px; padding: 0px 0px 10px 10px; } div.pathway { margin-bottom: 1em; } div.pathway img { padding: 0 2px; } /* The PDF, Email and Print buttons */ div.buttons_heading { margin:10px; width:10%; float:right; } .productPrice { font-weight:bold; white-space: nowrap; } .product-Old-Price { color:red; text-decoration:line-through; } /** BROWSE PRODUCTS STYLES **/ .browseProductContainer { width:100%; padding: 3px 3px 3px 3px; vertical-align: top; } .browseProductTitle { font-size: 16px; font-weight: bold; padding: 3px; margin-top: 3px; width: 30%; float: left; } .browseProductImageContainer { float: left; width: auto; margin: 3px; } .browseProductImageContainer { margin: 3px; float: left; height:130px; width:120px; } .browseProductDetailsContainer { float: left; width: 70%; } .browseProductDescription { margin-top: 40px; width:40%; } .browsePriceContainer { float: left; margin: 5px; width:20%; } .browseAddToCartContainer { width:30%; text-align:center } .browseRatingContainer { float: left; width:25%; margin: 3px; white-space: nowrap; } /** Flypage Styles **/ .thumbnailListContainer { text-align: center; width: 200px; height: 200px; overflow: auto; } /* General Form Styling */ .formLabel { float:left; width:30%; text-align:right; font-weight: bold; margin: 2px; white-space: nowrap; clear: left; vertical-align: middle; margin-top: 8px; } #agreed_div { white-space: normal; } .formField { float:left; width:60%; margin: 2px; vertical-align: middle; margin-top: 8px; } .missing { color:red; font-weight:bold; } /** * Administration Styles */ .adminListHeader { float:left; height: 48px; background-repeat: no-repeat; text-align: left; font-size: 18px; font-weight: bold; padding-left: 80px; } .labelcell { margin-left: auto; font-weight: bold; vertical-align: top; width: 30%; } table.adminform td.labelcell { text-align: right; } .iconcell { vertical-align: top; width: 5%; } .shop_error, .shop_warning, .shop_info, .shop_debug, .shop_critical, .shop_tip { background-color:#FAFAD2; background-position:left 5px; background-repeat:no-repeat; border-color:#AACCAA; border-style:dotted none; border-width:1px 0pt; font-weight: 900; margin:1pt 1pt 1em 1em; padding:0.5em 1em 1.5em 48px; } .shop_error { background-image: url( images/error.png ); } .shop_warning { background-image: url( images/warning.png ); } .shop_info, .shop_tip { background-image: url( images/info.png ); } .shop_debug { background-image: url( images/log_debug.png ); } .shop_critical { font-weight: bold; background-image: url( images/log_critical.png ); } /** * Addtocart detail Styles */ .vmCartContainer { /* Cart Container */ width: auto; float: right; background: #cccccc; border: 1px solid #000; padding: 3px; } .vmCartChildHeading { /* Header for the cart */ font-size: 14px; font-weight: bold; padding-bottom: 3px; text-align: left; } .vmCartChild { /* Container for the Child Product */ vertical-align: middle; border: 1px solid #000; padding-left: 2px; padding-right: 2px; margin-bottom: 2px; float:left; } .vmChildDetail { /* Child Detail, description , attributes ,price, quantity etc */ vertical-align: middle; margin-top: 6px; } .vmCartChildElement { /* Individual element styling */ width: 100%; vertical-align: middle ; height: 25px; text-align: left; } .vmCartAttributes { /* Attributes Div*/ margin-top:8px; width:100%; } .vmAttribChildDetail { /* Product Attributes Styling */ } .vmMultiple { height:35px; } .vmChildType { /* Product type div*/ width: 100%; } .vmClearDetail { /*Clear the divs afer child types*/ clear: both; } .vmClearAttribs { /*Clear the divs before the attributes*/ clear:both; } .vmRowOne { /* Odd Row One styling */ background: #cccccc; } .vmRowTwo { /* Even Row Styling */ background: white; } /* Link Details for link to child*/ .vmChildDetail a, .vmChildDetail a:link { font-size : 11px; color : #000000; text-decoration : none; font-weight : bold; } .vmChildDetail a:hover { font-size : 11px; color : #333333; text-decoration : none; font-weight : bold; } /* Styling for the form elements to enable correct Line Up */ .inputboxquantity { margin-top: 3px; vertical-align: middle; } .availabilityHeader { text-decoration:underline; font-weight:bold; } .inputboxattrib { float: left; margin-top: 0px; vertical-align: middle; margin-bottom: 2px; } .quantitycheckbox { margin-top: 6px; vertical-align: middle; } /** * Addtocart detail Styles for placing attributes beside product_types */ .vmCartContainer_2up { /* Cart Container */ width: 100%; float: left; background: #cccccc; border: 1px solid #000; padding: 3px; } .vmCartChildHeading_2up { /* Header for the cart */ font-size: 14px; font-weight: bold; padding-bottom: 3px; text-align: left; } .vmCartChild_2up { /* Container for the Child Product */ vertical-align: middle; border: 1px solid #000; padding-left: 2px; padding-right: 2px; margin-bottom: 2px; float:left; } .vmChildDetail_2up { /* Child Detail, description , attributes ,price, quantity etc */ vertical-align: middle; margin-top: 6px; } .vmCartChildElement_2up { /* Individual element styling */ width: 100%; vertical-align: middle ; height: 25px; text-align: left; } .vmCartAttributes_2up { /* Attributes Div*/ float: left; padding: 0px 5px 5px 5px; margin: 0px 5px 5px 5px; width:50%; } .vmAttribChildDetail_2up { /* Product Attributes Styling */ } .vmMultiple { height:35px; } .vmChildType_2up { /* Product type div*/ background: #cccccc; padding: 0px 5px 5px 5px; margin: 0px 5px 5px 5px; float: left; width: 40%; border: 1px solid #000; } .vmClearDetail_2up { /*Clear the divs afer child types*/ } .vmClearAttribs_2up { /*Clear the divs before the attributes*/ clear:both; } .vmRowOne_2up { /* Odd Row One styling */ background: #cccccc; } .vmRowTwo_2up { /* Even Row Styling */ background: white; } /* Link Details for link to child*/ .vmChildDetail_2up a, .vmChildDetail_2up a:link { font-size : 11px; color : #000000; text-decoration : none; font-weight : bold; } .vmChildDetail_2up a:hover { font-size : 11px; color : #333333; text-decoration : none; font-weight : bold; } .vmCartModuleList { cursor : pointer; font-size : 11px; color : #000000; text-decoration : none; font-weight : bold; } .vmCartModuleList:hover { font-size : 11px; color : #333333; text-decoration : none; font-weight : bold; } .vmquote { margin: 4px; border: 1px solid #cccccc; background-color: #E9ECEF; padding: 10px; font-size: 12px; color: #254D78; } .editable { background: #ffff33; cursor: pointer; } ul.pagination li { padding: 2px 1px; display: inline; background: none; } .hr { clear:both; border:1px solid #FFFFFF; height:1px; width:100%; text-align:left; } .hr_div { height:10px; width:100%; } .clr { clear: both; overflow:hidden; } .box img, #child ul li a img { height:48px; margin:0 2px 0 0; width:64px; } #parent_img {width: 325px; height: 221px; margin-left: auto; margin-right: auto;} #parent_img a {text-decoration: none;} #parent_img a img {width: 325px; height: 221px} What software do you use for css? Is there an official site for css software, I tried looking for one, but all of them are tutorials When viewing my website, the font is too small in IE/Opera/Crazy Browser. I am a Firefox user and the site looks the way I want when viewed in Navigator & Firefox. I don't want to change that. I'm thinking that I can use java script to make a page link to a specific style sheet, based on the user's browser. Unfortunately, I'm not a scripter and I haven't managed to find one that suits my purpose. Is there a simpler way to accomplish this? Thanks Hi, I am working on an online store for the company that I work for and they have me using online shopping cart software to generate the site. It is nice to have the software handle all the back-end work for me but the process of writing html and css is such a pain that I write my code in DW and cut and paste it into the online software. The software gave me one css page to call my own that is automatically referenced on each page. Here's my site: http://www.nova-dataonline.com So, with that said, here's my problem. As you can see, the graphics that I have placed in the center of the page overlap the bottom runner of the software-generated page. I have tried to get the main part of the page to expand with whatever content I have placed there since these are not the only images that will go on this page. But since I am not super experienced, I have been stumped. Part of the problem is that I have limited access to my source html and css. This is the css that I wrote to layout the four images that you see: PHP Code: #container{ position:absolute; top:105px; left:185px; width:580px; z-index:0; height: 384px; } #top_left{ background-image: url(images/message/top_left.jpg); background-repeat: no-repeat; width:374px; height:150px; position:absolute; left:5px; top:25px; display:block; z-index:0; } #top_left_text{ text-align:left; vertical-align:middle; color:#FFFFFF; position:relative; left:0px; top:0px; width:auto; height:auto; padding:10px; z-index:1; } #top_right{ position:absolute; left:384px; top:25px; width:191px; height:150px; z-index:0; } #bottom_left{ position:absolute; left:5px; top:185px; width:191px; height:150px; z-index:0; } #bottom_right{ background-image: url(images/message/bottom_right.jpg); background-repeat: no-repeat; position:absolute; right:5px; top:185px; width:374px; height:150px; z-index:0; } #bottom_right_text{ text-align:left; vertical-align:middle; color:#FFFFFF; position:relative; left:0px; top:0px; width:auto; height:auto; padding:10px; z-index:0; } .header{ color:#FFFFFF; font-size:medium; } and here's the markup: PHP Code: <div id="container"> <div id="top_left"> <div id="top_left_text"> <span class="header">Linksys 54Mbps Wireless Router</span><br /><br />Wireless-G is the upcoming 54Mbps wireless networking standard that's almost five times faster than the widely deployed Wireless-B (802.11b) products. Since they share the same 2.4GHz radio band, Wireless-G devices can also interoperate with 11Mbps Wireless-B equipment. Since both standards are built in, you can migrate to the new screaming fast Wireless-G standard as your needs grow. </div> </div> <div id="top_right"><img src="images/message/linksys_WRT54G.jpg" alt="Linksys WRT54" width="189" height="150"></div> <div id="bottom_left"><img src="images/message/netgear_WG311.jpg" alt="Netgear WG311" width="189" height="150"></div> <div id="bottom_right"> <div id="bottom_right_text"> <span class="header">Netgear 54Mbps Wireless PCI Adapter</span><br /><br />At 54 Mbps, this wireless 2.4 GHz 802.11b/g PCI card is much faster than existing 11 Mbps wireless networks and will supercharge the delivery of media-rich content to your desktop PC as never before. It easily handles huge digital video and MP3 files, firing them through your network at blazing speeds. </div> </div> </div> I am rather lost and would like to find a way to make this work. The kicker is that I cannot edit the main stylesheet for the page! Any help would be awesome! Is there a CSS selector that only IE5 will detect? I have my site working fine in IE6 and Firefox now and it displays legibly in IE5 but the padding is a bit off. Is there a selector I can use (such as * for IE in general) to make a change to the padding on IE5. Or should I be looking into loading separate CSS files dependent on the users browser? I have a large data sheet with individual td IDs, numbered 1 to 49 (first 3 shown for reference). <td id="data_cell_1"> <td id="data_cell_2"> <td id="data_cell_3"> I have been trying to apply a style to all of them (No I don't want to use a class, because they override the id's don't they? Or could I apply both a class and id to an element?) td[rel~="data_cell_"]:hover{background: #87F0FF;} td#[rel~="data_cell_"]:hover{background: #87F0FF;} td[id~="data_cell_"]:hover{background: #87F0FF;} td#[id~="data_cell_"]:hover{background: #87F0FF;} None of those worked. Isn't there a way to select all ID's based on partial information? I have three INPUT elements in a row and I want to apply different formatting to the second two. I know I can use: input+input { } This affects all but the first of the INPUT elements, which is exactly what I want. However, this works only with NS/Mozilla, and not MSIE. There is a way to apply CSS based on words within the value of the element, but I'm not sure how it works. For instance in the code: <INPUT type="submit" name="Submit" value="Browse"> I think there's a way to say "apply this style if the word 'BROWSE' is present in the element", but I can't make it work. Also, I know I can apply a CLASS to the element, but I'd like to not touch the HTML and use strictly CSS if possible. Can anybody help with this? Thanks. is there a specific order in which to put the css selectors in a style sheet, eg a:link a:hover a:active a:visited my problem is that the hover state isn't activated for links i have already visited. thank you Hi, I check my css file on 3wc. you will find the error messages/warnings and my css code in this link http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Falicelee.no-ip.com&usermedium=all I did some research on ID selector. I still don;t understand understand why 3wc css validator cannot recognize ID selector... how should i correct the errors and warning? i have already done the html validation... it is error-free and valid in html 4.0 thanks Hello friends How can i define a css rule with an ID selector for two or more different ID's for an <div> element thanks Can CSS select the first word in a Div? If so how? Example: first word in a pharagraph. I'm new to CSS but have read more in the past two days than I care to tell you about. I'm stuck on how to reference a deeply nested element that is automatically generated by a drupal view. The problem lies with the fact that I can select it directly and style it but other views (pages) are rendered with the exact same attributes (Name, Class, and ID). The Class of the page or view is different but is nested about seven tags back. My question is: How can I select the Element to be styled when the only differentiator is so far back in the hierarchy of the page without using a local or inline CSS? The following are snippets of the two pages that share the same Element attributes (<select name="filter0" class="form-select" id="edit-filter0" >) Thanks for any suggestions you might have. Mike ********* First page ******************* Code: <div class='view view-firstview'> <form action="URL" method="get" id="views-filters"> <div> <table> <thead> </thead> <tbody> <tr class="odd"> <td> <div class="form-item"> <select name="filter0" class="form-select" id="edit-filter0" > <option value="**ALL**"><All></option> </select> </div> </td> <td> <div class="form-item"> <select name="filter1" class="form-select" id="edit-filter1" > <option value="**ALL**"><All></option> </select> </div> </td> <td> <input type="submit" id="edit-submit" value="Submit" class="form-submit" /> </td> </tr> </tbody> </table> </div> </form> </div> ******** Second Page ******************** Code: <div class='view view-secondview'> <form action="URL" method="get" id="views-filters"> <div> <table> <thead> </thead> <tbody> <tr class="odd"> <td> <div class="form-item"> <select name="filter0" class="form-select" id="edit-filter0" > <option value="**ALL**"><All></option> </select> </div> </td> <td> <div class="form-item"> <select name="filter1" class="form-select" id="edit-filter1" > <option value="**ALL**"><All></option> </select> </div> </td> <td> <input type="submit" id="edit-submit" value="Submit" class="form-submit" /> </td> </tr> </tbody> </table> </div> </form> </div> Can someone help me with this issue? I've looked through the selector section of the CSS2.1 spec, but I can't find anything about it. Consider the following CSS excerpt (real life example): Code: #attachments table td, #attachments table th { padding: 0 1em; } Lots of extraneous text in there, right? Isn't it possible to do something like this instead: Code: #attachments table (td, th) { padding: 0 1em; } Or at least something similar? Can anyone help poor little me with this? Hey everyone, I have a footer with two images that link to various associations for home building. In firefox when I over over the link which has a nested image. The next element is a paragraph which is hidden unless the link is hovered over. In IE the paragraphs don't show. I don't know why since I'm using a:hover, well actually it's #link-ID.hover. PHP Code: <div id="footer" style=""> <div id="foot-left" style=""> <div id="cedia"> <a id="cedia-link" href="http://www.cedia.net/"> <img src="images/cedia.png"> </a> <p id="cedia-info"> Custom<br> Electronic<br> Design &<br> Installation<br> Association </p> </div> <div id="ochba"> <a id="ochba-link" href="http://www.gohba.ca/"> <img src="images/ochba.png"> </a> <p id="ochba-info"> Ottowa-Carleton<br> Home<br> Builders<br> Association </p> </div> </div> <div id="foot-right" style=""> <p>To contact us:</p> <address> Phone: 613-838-4800<br> Fax: 613-838-3800<br> Email: info@moorhousecabling.ca<br> 9 Mary Hill Crescent, Richmond, Ontario, K0A 2Z0 </address> </div> </div> Code: css #footer{ float:left; clear:both; width:800px; overflow:hidden; height:140px; } #foot-left{ float:left; clear:none; width:216px; height:100%; } #cedia{ font-size:small; width:50%; float:left; clear:none; } #cedia-link:hover + #cedia-info{ display:block; } #cedia img{ margin-left:40px; float:left; clear:none; border:0; } #cedia-info{ margin:0 0 0 40px; padding:0; display:none; float:left; clear:both; } #ochba{ font-size:small; width:50%; float:left; clear:none; } #ochba-link:hover + #ochba-info{ display:block; } #ochba img{ margin-right:40px; float:right; clear:none; border:0; } #ochba-info{ margin:0; padding:0; display:none; float:left; clear:both; } #foot-right{ float:left; clear:none; background-color:#e6232b; font-size:x-small; padding:20px 0 0 20px; height:100%; width:563px; color:#ffffff; font-weight:bold; } Unfortunately no matter what I do to my routers firewall, including turning it off and also trying to add the webserver host to the DMZ. Either way all the port scanners I've used said that port 80 was not responding to SYN connection requests at all. Basically the port is in stealth mode. I cannot give you a live sample of the site. Any ideas or help would be greatly appreciated. I want to know if ID Selectior for a class is avaible in css. I got many textboxes cssclass'es applied to .TEXTBOX_BLACK but I wantto add extra attribute to only Textbox10 something like overflow :auto; thanks much before any answers. regards. my attempt is below but ofsure not working: .TEXTBOX_BLACK { border-style : solid; border-width: 1px; border-color:Black; font-family: Tahoma; height:14px; width:140px; background-color: #414141; } .TEXTBOX_BLACK #TextBox10 { overflow :auto; } |