css

How to indent text in a select drop down option menu using PHP & CSS? [REDUX]

I asked a similar question earlier but I'll ask it again in a different way because I re-worked the code a little. I was wondering how can I indent categories and endless sub categories that I have in a select drop down menu using PHP & CSS? Here is my PHP code to display the select drop down. echo '<select name="parent_id"> <o...

Isolating a chunk of code from all existing external CSS

I have used a tutorial to create a widget for my site. This widget now needs to be dropped into a complex page with existing CSS rules on important tags like *, body, ul, and li. Is there a way to drop in this widget (currently a separate page with html, css, and javascript) into my webpage without the webpage applying all of its own ...

Cannot retrive style using js

<html> <head> <style> #menu{ color :red; } </style> </head> <body> <div id="menu"> ABCXTZ </div> </body> <script> a = document.getElementById('menu'); alert(a.style.color); </script> </html What i retrive just is a empty box. ...

CSS no decoration on links

Example page, Accompanying CSS Should be a fairly basic issue but for some reason I can't figure it out. Basically I want the links in my navbar to have no underline or colour change and remain white. Any idea where I'm going wrong? Thanks! ...

assigning css class to a linkbutton when clicked in asp.net.

Consider i have 3 linkbuttons on a page, <asp:LinkButton ID="LB1" runat="server" CssClass="regular" OnClick="LB1_Click"> Today</asp:LinkButton> <asp:LinkButton ID="LB2" runat="server" CssClass="regular" OnClick="LB2_Click"> Today</asp:LinkButton> <asp:LinkButton ID="LB3" runat="server" CssClass="regular" OnClick="LB3_Click...

How can I include CSS in php?

i want to include my css/stylesheet via php so that... <link rel="stylesheet" href="http://www.mydomain.com/css/style.php"&gt; so that i can than dynamicly change different stylesheets.... how can i do that ...

CSS Width problem

I'd like to create a div that has the same width as the text's length inside it. I can do it without problem when the div is inside a DOM element that has enough width to fit the text in. But when I put my text holder div inside another div that is not wide enough the text will be fractioned into lines even if I set the text holder div'...

What does square brackets in CSS class names means ?

I saw here square brackets that are used in class names: <input class="validate[required,custom[onlyLetter],length[0,100]]" name="firstname" type="text" /> What does this means ? ...

CSS background-color precedence

I'm changing the colors of a table rows on hover with jQuery and I've noticed that in the following instances I get different results. The CSS is as follows: .normalcolor { background-color: #dedede; } .reddishcolor { background-color: #ffc59c; } .hovercolor { background-color: #f1e1c0; } Now, I'm doing the hover effect w...

How to place text at the bottom when there's predefined height!

This should be incredibly trivial, but it's not. I have a predefined height for an anchor, and I would like to place the text at the bottom. <li><a class="my-text">My Text</a></li> I used the following CSS, which does not work. The text still appears at the top. a.my-text { background-color:#cccc; height:50px; vertical...

border-radius is not working in Firefox for me on input types.

Everything works fine in webkit browsers. But when i'm trying to use border-radius with input[type="url"] it doesn't work. Not even just using input. Nothing still works. Css section.crypter input { border-radius: 15px; -moz-border-radius: 15px; -webkit-border-radius: 15px; padding: 5px; } HTML <form> <input type="ur...

CSS - using :hover on elements other than links...

Hey, For ages now my site has had a catalogue where the small image is directly within a link within a div. The link must only be around the image - but I do not want to use the + selector since this is not supported by some versions of IE (IE6 onwards I think it needs to support). The div has class "ImageHoverSpan" (it used to be a Spa...

a different kind of sticky footer question

My page ... http://webpages.charter.net/jolove/Escort_Folder/test.html thanks to: fortysevenmedia.com/blog/archives/making_your_footer_stay_put_with_css Now I have a functional footer that adheres to the bottom of the window .. except now what I need to do is get the footer to stick to the bottom with the height of the scrollable are...

overflow-x: auto problem on firefox/ie

i have this problem with my website css overflow-x:auto ; coincidently, when i try on stackoverflow.com . I can see stackoverflow also have similar problem. when i try to make my firefox/internet explorer 7 browser window screen smaller. i can see part of the screen on upper right hand-side and lower right hand-side not render properly....

How come the last 3 rows of cells in my table are not perfectly lined up with the 1st row in my HTML table?

Here is a link my example of the mis aligned table rows Click preview in the upper top left corner of the JS Bin menu bar to see this example in the works. You can see the top 2 borders of the table cells with Email and an input field in them are a bit lower than the top 2 borders of the 2 table cells to the left of them (Username and a...

Sun One web server CSS problem with Mozilla

Hi all, I have a css problem with Firefox. The css files on my website don't work on Firefox but it works fine on IE. I am using Sun One web server and the mime.types file is already configured for css and the virtual server's obj.conf file has ObjectType fn="type-by-extension" in the default Object. Anyone here know what could be ca...

PHP - help coding echo statement to create every other line of different background colors

I am creating a table (stats_1) dynamically and would like to have each row of different background color. So far, all the lines have the same background color. I have the following php code that prints echoes out and statements: $keys = array('Col1', 'Col2','Col3','Col4','Col5','Col6','Col7'); echo '<table id="stats_1"><tr>'; ...

reducing line height on cufon text

Having a problem reducing the line height on a Cufon heading. Using the line-height property but doesn't seem to do anything, p.s I've checked for any conflicting CSS rules, any wise words? :) This is it http://www.warface.co.uk/clients/detail-shoppe Its the header under the 'New' Bubble I would like to tighten up ...

Can rebol parse function be able to create rules for parsing css2 / css3 fully ?

Are there limitation to rebol parse function power ? Would it be capable of parsing the whole css2 / css 3 spec or will it encounter theorical impossibility to form some rules ? Update after HostileFork answer: I mean in regexp I think it would be rather impossible, is parse much more powerfull ? If yes does it mean it would be possibl...

Help with CSS layout

Hey there! I'm currently coding my design portfolio and have encountered a problem with the layout. Here is a link to my website so you can see the problem: http://www.mozazdesign.co.cc/ Basically, I want the contact me and the icons below to appear under the header and navigation. I have put them in separate containers but for some ...