CSS - Apply Styles To Content Boxes
Hi everyone,
I'm wanting to apply some very faint colors to the different content boxes on a site I'm building for a client. For now there are only two visible if not logged in.... 'follow us' and the 'who's online' boxes aligned on the right column of the site. The styles for any content box added are pulled from the same css element but I can assign a suffix unique to each one in the admin backend (joomla site). I added the suffix '_followus' to the top box, copy the existing 'moduletable' elements, append the '_followus' to it and change the background color however when I do this I lose the gradient title bar and all other styling. It basically is just a box with no styling and the title and icons in the middle of the box. I'm obviously missing something but am not seeing it. Wondering if someone would take a look and see if they have an answer? Thanks for looking. Here's the URL... spotabusiness dot com Similar TutorialsHi, I have a weird litlle problem here... I have embedded a forum (invision) in my website. This forum uses a stylesheet for all its settings (duh). I can choose if I want to use it inline or external. Offcourse, my site also has its own stylesheet to work with. Because the forum code is on a <div > in my site, the css from the forum messes up my site. Is it possible to get the forum stylesheet to be only applicable inside the layer that it's on? Inline or linked? I tried using an iframe instead of a div, but that gives a heap of other trouble (especially cookie-related) so that's not an option... i want to add styles to the text area content such as bold, itallic, indent, color and size (like our fourms Post new Thread text area). how is it possible wating for ur reply bye Hi guys, I am trying to achieve the following: Box 1 | ------ Box 2 | ** With a 3rd box to the right of box 1&2 I have got this far but cant work out how to do 'box2' Code: <div id="box2"> box 2 </div> <div id="box3"> box 3 </div> Code: #box2 { float: left; padding: 10px; margin: 20px; background: #ffffff; width: 100px; /* ie5win fudge begins */ voice-family: "\"}\""; voice-family:inherit; width: 100px; } html>body #box2 { width: 100px; /* ie5win fudge ends */ } #box3 { float: right; padding: 10px; margin: 20px; background: #ffffff; width: 100px; /* ie5win fudge begins */ voice-family: "\"}\""; voice-family:inherit; width: 100px; } html>body #box3 { width: 100px; /* ie5win fudge ends */ } Can anyone possibly help? I am new to using CSS for more than just text, and I have run into a problem. What I want to do is to have an image with a margin of 3px around it. The problem occus with the background color and border in Mozilla (Fire Fox). The box dosn't fit around the image properly. Does anyone have an idea why this is? --xenite hi friends, i have a table with two columns.I have a designed td in stylesheet but it is not take effect.In the normal design view,style is effected but when runtime the changes will not take effect. And also if apply css "class" for td it wont accept instead it accept only property which are given in in style property i.e <td style="bgcolor:blue......"> My CSS is... Code: .left_column { background-color:#d29b28; width:2000px; } .content { background-color:#cccccc; vertical-align:top; padding-top:10px; padding-left:10px; line-height:5pt; font-family:Tahoma; } .caption { background-color:Black; color:White; } div.content { background-color:Lime; float:left; text-align:left; font-size:20px; line-height:3px; font-family: Arial, Helvetica, sans-serif,Tahoma; } and my Source Code is...(Which is not take effect) Code: <td class="left_column"> .............................................. </td> <td class="content"> <div class="content"><%# Server.HtmlEncode(Eval("question").ToString())%></div> </td> If i give the above code <tr> is divided into two <td> with equal width. This code only take effect... Code: <td width="200" style="background-color:#d29b28;border-style:solid; border-right-color:Black; border-width:1px; min-height:250px;"> ........................... </td> <td class="content"> <div class="content"> <%#Server.HtmlEncode(Eval("question").ToString())%> </div> </td> what can i do for that...I'm designing in Master Page.. Is there a way to use CSS to apply "no" style to something? I know it's strange... I'll explain. I have a general style for all the forms on my website but there is one form I want to appear as the standard default looking form. I don't want to assign an id or anything to the styled forms because then I would have to go back and edit every single page... I'd much rather do something to the 1 form to make it look like the browser default. Is there a way to exclude something from taking on a general style? Any help is appreciated! Thanks! Hey Guys, I'm trying to apply a style to all the TD's within a class of TR's. I am having trouble making the changes apply to the TD not the TR. How can I do it? Thanks! Hi I'm building a selectbox insead of using the common select tag. I use the windows.createpopup() method to display the list of choise. Differently to the div object the popup object is like a new window so it doesn't inherit the css style sheet I've attached to the main window. I tought to attach it by using the addImport(url) method of the styleSheet object but it doesn't seem to work. Here it's my code, the show function it's called when the selectbox expands: var Select_box = window.createPopup(); Select_box.document.styleSheets[0].addImport("URL('common/css/default_style.css');") function show(element) { if (Select_box.isOpen==false) { Select_box.document.body.innerHTML = Select_box_content.innerHTML; Select_box.document.body.className='selectbox'; Select_box.show(0, 18, 150, 50, element); } else { Select_box.hide(); } } I've noticed that using the addImport method on the main window, and not on the instance of the select_box, with 0 index of the styleSheet the error doesn't occur but it doesn't also change the proprety. Tring using any other index value it gives me the usual error. So how can I attach a style sheet to a popup created with the window.createpopup()? Thank you Hi there. I am looking through a style sheet from a site and was just wondering what this line would apply to: Code: submit { font-size: 10px; border: thin #A9D5F5 solid; background-color: #395980; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; letter-spacing: 0px; word-spacing: 1pt; } I guessed submit buttons but it's nothing to do with them. Thanks Colin Hi! In this page [www].bezlica.ru/chat/sample.php , left bottom flash window is 3 pixels up of its normal position. In Firefox it renders well. Is there any way to fix in IE, while not affecting Firefox? can I apply more than one style to an element? Or do they overwrite each other? thanks Hello, Though the 'CssClass' property is available with the control, it doesnt seem to have any effect on it. Rather it works on HTML Control Checkbox. Thanks. Is there any way I can stick a margin onto a tbody element? I'd like a 10px gap between the bottom of my table if the tbody element is present and does not have display: none. My alternative is to put in a tfoot element that is nothing but a spacer, but I hate putting in extra markup just so I have a handle for display rules. Cheers, Pete Hi all.. I been tried to put page break function inside <div> tag but it still can't take any effect. Am i correct or any others idea? And when i put in page break function and want to print page 2, but it'll also print out some page 1 table field. I'm trying to change my site to have a css for easy changing. I've gotten 1 written that encompasses all styles, however I'm trying to do data as well. Navigational menu, header etc. I'm assuming I ought to be able to have css1 for styles, css2 for data and html page that pulls from each? Here's my style css: body { margin : 0; padding : 0; } body { background-image: url('PrairieWindbkg.gif') } body {background-color: #0000FF;} p, ul, ol, li { font : 10pt Arial,geneva,helvetica; } h2 { font : bold 12pt Arial, Helvetica, geneva; } #leftnavigation { position : absolute; left : 0; width : 240px; margin-left : 10px; margin-top : 140px; color : #FFFFFF; padding : 3px; } a:link, a:visited { color: #FFFFFF; } a:hover, a:active { color: #FFFFFF; } #leftnavigation { font : 15pt Arial, Helvetica, geneva; } #headnavigation { position : absolute; left : 0; width : 550px; margin-left : 220px; margin-top : 10px; color : #ffffff; padding : 3px; } #headnavigation { font : 40pt Vivaldi, Helvetica, white, geneva; } #content { margin-left : 10px; margin-top : 80px; padding : 3px; color : #000000; } #content h1, #content h2 { color : #cc0000; } #productnavigation { position : absolute; left : 0; width : 950px; margin-left : 263px; margin-top : 35px; color : #ffffff; padding : 3px; } #productnavigation { font : 25pt Arial, Helvetica, geneva; } #counternavigation { position : absolute; left : 0; width : 150px; margin-left : 350px; margin-top : 700px; color : #ffffff; padding : 3px; } It can be seen on http://jewelrybydawn.com/TestCss.html in use. Now the parts I'm trying to make dynamic/static (?) (ok, universal!) are the left menu, top heading, top menu. Then I want each page to have the jewelry items that apply to it. I tried making another css along the lines of: #navbar { <br><A HREF="Shows.html" TARGET="">Current 2005-2006 Show Schedule!</A> <P><A HREF="Lampwork.html" TARGET="">Lampwork Beads</A> <p><A HREF="JewelryClub.html" TARGET="">Jewelry of the Month Club</A> <P><A HREF="Necklaces.html" TARGET="">Necklaces</A> <P><A HREF="Bracelets.html" TARGET="">Bracelets</A> <P><A HREF="Earrings.html" TARGET="">Earrings</A> <P><A HREF="Personalized_Jewelry.html" TARGET="">Personalized Bracelets</A> <P><A HREF="Gift_Certificates.html" TARGET="">Gift Certificates</A> <P><A HREF="samples.html" TARGET="">Jewelry & Bead Gallery</A> <P><A HREF="Katrina.html" TARGET="">My Hurricane Katrina House Update!</A> <P><A HREF="Newsletter.html" TARGET="_blank">Current Newsletter</A> <P></p> } so that on each actual page I would have: <link href="Test.css" rel="stylesheet" type="text/css" /> <link href="TestNavbar.css" rel="stylesheet" type="text/css" /> </head> <div id="leftnavigation"> <div id="navbar"> </div></div> OR something to this effect... that way if I kill the Katrina link for example, I don't have to revise every single page, just the TestNavbar.css. Can anyone help? Thanks! Dawn I need to load data from an xml file (RSS feed) into a html page using Ajax. I would like to style the xml tags with CSS. I do not have access to the server hosting the RSS feed, but do have permission to republish the feed. Can I simply set up a style sheet for the xml tags and the browser will apply the styles when the XML loads through Ajax? OR Will I need to use javascript to walk through the XML document, retrieve node values and reprint the information as HTML which displays according to styles I set up for HTML? Thanks for any help. I am about to go insane.. I am a total newbie to DHTML and Javascript and I am trying to do a onmouseover event to make an image display normally as a grayscale version of itself (with filter:gray) and when the mouse moves over it I want it to switch to the full RGB color version. I tried to do a rollover with two seperate versions of the image and it worked, but for some reason IE 6 wants to load the image from the server again everytime I onmouseover or onmouseout. This is very slow, especially on my server. I just want to change the image with DHTML filters.. General pseudocode: <img src="blah.jpg" style="filter:gray" onMouseOver="style='filter:none'" onMouseOut="style='filter:gray'"> Can anybody help me? PLEASE???!?!? i have a table with several header columns: Code: <table> <tr><th>header 1</th><th>header 2</th><th>header 3</th></tr> <tr><td colspan=3>empty info</td></tr> </table> now i want to put a border inbetween the cells, to do this i simply used: Code: table th { border-left:1px solid black; } except this adds a border to the left hand side of the far left cell, making the table border of 1px actually 2px if i give that end cell an id can it be ignored when applying the left border? or would i have to add the lines: Code: table th#idname { border-left:0px; } Here's the code (it's all in the one file). (I had a link but I'm too new here) 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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/xhtml; charset=ISO-8859-1"></meta> <title> image border bug test</title> </head> <body onload="highlightimg()"> <div id="container"> <a class="aclass" ><img src="a.jpg" id="i1" alt="alttext"/></a> <a class="aclass" ><img src="b.jpg" id="i2" alt="alttext"/></a> <a class="aclass" ><img src="c.jpg" id="i3" alt="alttext"/></a> </div> <script type="text/javascript"> function highlightimg(){ document.getElementById('i2').setAttribute('style','border-width: 3px 3px 3px 3px; border-color:red;border-style: solid;'); } </script> </body> </html> Internet explorer refuses to apply the border style to the center (or either of the other) images. Any thoughts? (This is a small test case, the style must be applied with js in the actual application I'm building). |