css

Why is CSS applied only into my master page?

In the head portion of my Master page i have a link to an external CSS file <link href="style.css" rel="stylesheet" type="text/css" /> Although i am able to apply the style in child pages in design time... <asp:Label ID="Label" runat="server" CssClass="BodyText" Text="This is a link"></asp:Label> ...in run time child pages have no ...

textarea's rows, and cols attribute in css

I just had a quick css form question. I am trying to get the textarea's rows, and cols attribute set in css. So for example how can I do this in CSS. ...

Which type of quotes we should use in css background url ("....")? Single, double or no quote needed?

this background:url(http://url); this background:url("http://url"); or this background:url('http://url'); ...

Lightbox or prettyphoto

I am teaching myself how to build a gallery website for my artwork using CSS, and Dreamweaver as the script editor. I have found some good pdf's and the site was coming along nicely until I tried to incorporate Lightbox or prettyphoto. My thumbnails change to fullsreen but the effects aren't there. Are there any tutorials to show which f...

IE6 background misaligned

I have IE6. [EDIT: you can see the template live here: http://themeforest.net/item/aqua-terra-lava-html-blog-portfolio-/full_screen_preview/53209 ] I have a template, with 3 <a></a> that change the position of their background to create a button effect. This is how it looks in any browser This is it with IE6: This the CSS code: ...

JQUERY, Returning the object that was clicked to add a Class

Given the following: <div id="table-filters"> <ul> <li class="active" onclick="myfunc();">blah</li> <li onclick="myfunc();">blah</li> <li onclick="myfunc();">blah</li> <li onclick="myfunc();">blah</li> </ul> </div> function myfunc() { // Activate the LI clicked $(this).addClass("active"); } I ...

How to hide text field in Html File Upload

I am wondering how to hide the text field portion of a standard html file upload tag for example <input type="file" name="somename" size="chars"> This generates obviously a text field and next to that field is a browse button... I want to hide the text field part but keep the button. ...

How do I text-align:center php echo text in Firefox?

I don't see this question answered anywhere else here. Here's the code: <div class="copyright"> <h2 class="copyright unselectable" onselectstart="return false"> &copy;&nbsp;2009&nbsp;-&nbsp;<?=date("Y") ?>&nbsp;<?=PROJECT_NAME?> </h2> </div> It's aligning right in IE but not FF or Safari. It seems to not be taking into account the s...

Style row or column rather than cells when border-collapse: separate

I have a table which for other reasons I prefer to keep table-collapse: separate. However, I would like to be able to highlight an individual row or column. Unfortunately, it seems that any style applied to the <tr> or <col> tags only applies to the cells, not the space between them. For instance: <style> td { width: 10px; height: ...

PHP content caching for javascript and css

I have a unique problem, which is proving difficult to solve using google. I am consolidating all of my javascript and css into separate php files, which use require_once() to pull the contents of the files in. The javascript file looks something like this: <?php header('Content-Type: text/javascript'); require_once('jquery.form.js'); r...

Is it possible to create a table within a <select> tag?

I'm looking to create a select statement where each option contains quantity and price for an item we're selling. I thought I would create a table where for every row, quantity would be in one , and price would be in the other . I can't seem to get this to work in a select statement. I also tried using tags with a float-right and float-...

CSS navigation problem

Hello, I have been trying to add another button to my navigation bar at http://hawaiiislandpreservationsociety.org/ ,but the layout messes up. What do I need to tweak to get it inline with the rest of the buttons? Much Appreciated, Azeem ...

Strange class behaviour; Gets applied to drop list option when it shouldn't...

This is kindof hard to explain... I have this class: .nav_option_main { background-color: #FC9; } I have two drop-lists, let's call them Drp1 and Drp2. Drp2 is populated depending on Drp1:s value, using javascript. Some values in Drp2 has the above class applied to them, but only some. Now, here is the strange problem, lets say...

Content in floated divs causes div below to drop

I'm displaying WordPress posts horizontally using floated divs. I've got it working fine, but when the divs move to a new row, if the paragraph text inside each floated div is too long, the div immediately below it drops. Furthermore, each floated div is affected by the length of the divs above it. How do I make them flow naturally wit...

How to apply rows style depending on cell data with jqgrid?

My use case is the following: Having a table like: +------------------------------+ | NOTICE | This is notice #1 | | WARNING | This is warning #1 | | NOTICE | This is notice #2 | | ERROR | This is error #1 | +------------------------------+ I'd like to have a specific background color for the whole rows depending of the valu...

How Can I minimize the HTML code by making it one line of code?

So I have made a web page of HTML, Inline CSS and JS. Since this page will be produced through JS function opened.document.write(); I would like to put all the web page code into one line that can be taken in one of the previously mention function instead of repeating the same function for every new line. I can't affors doing this man...

jquery gallery fade in/out

Hi There, I am building a simple image gallery based on the following markup: <div id="image-list"> <ul> <li id="image-1"> <img src="myimage1.jpg" width="500" height="500" alt="My Image" /> </li> <li id="image-2"> <img src="myimage2.jpg" width="500" height="500" alt="My Image" /> </li> <li id="image-3"> <img src="myimage3.jpg" width="5...

How do I make the padding of a link clickable in IE 6?

By default, only the text of links is clickable in IE 6. I’d like to make the entire area inside the link (i.e. including padding) clickable as well. I also need this area to be transparent, as the link covers half of a photo. Adding a background color makes the padding area clickable, but defeats the object, as the link is hidden. I c...

Content do not appear in iframe until i use the edit button in firebug

Its getting me crazy in FF. I tried the same page in Chrome and content appears instantly. I have an iframe that is loading a chart from another page. The problem is that the chart do not appears until I inspect the element and click on the edit element button. Once I add space after the src property in the html code (see below for bet...

IE8 Developer Tools - add CSS style.

I use the Web Developer Toolbar in FireFox to test CSS-edits. I want to do the same in IE, and I can somewhat do that with IE8's Developer Tool. However I can't add a style in Developer Tools, only edit existing styles - does any of you guys know of a way to edit the CSS like you can do with Chris Pedericks Web Developer Toolbar? ...