css

I want to hide text which is in <span> . but why it's not working?

I want to hide text which is in <span> . but why it's not working? .pdf {text-indent: -9999} <p> <a href="reader_overview.pdf" title="Open in a new Window" target="_blank"><img src="pdf.gif" alt="PDF" width="16" height="16" /> <span class="pdf">PDF 34KB, Opens in a new window</span> </a> </p> ...

How to properly preload images, js and css files?

Hi, I'm creating a website from scratch and I was really into this in the late 90's but the web has changed alot since then! And I'm more of a designer so when I started putting this site together, I basically did a system of php includes to make the site more "dynamic" When you first visit the site, you'll be presented to a logon scree...

Are there some good and tension free custom fonts available to use with sIFR, @font-face etc?

Is there any free font available to use with sIFR @font-face etc? if i use those then nobody will file a court case on me, no body will send any legal notice to me.? Are thee good tension free, license free fonts available to use personally, commercially in my projects, in client projects? Nobody should send any notice to my lovely cl...

JQuery: Read each line of an element

Hello, Suppose I have this html markup: <div id="wrapper"> <pre class="highlight"> $(function(){ // hide all links except for the first $('ul.child:not(:first)').hide(); $("a.slide:first").css("background-color","#FF9900"); $('ul.parent a.slide').click(function(){ $('ul.parent a.slide').css("background-col...

How old are CSS filters?

Filters like img {filter:flipV;} I'm guessing are pretty old, I just was asked by a colleague why they weren't working for him in FF. I assume they were an IE only thing that died out a while back? ...

Styling the "html" element in CSS?

Can anyone explain to me why can we style the element html? What are differences between it and body? I usually see tutorials and multiple websites using body and never html, I only found about it when using YUI 3: CSS Reset since changing the background in body didn't work. Edit: Actually, I still haven't found the problem regarding...

Div that appears behind other. How to avoid that behaivor?

Hello there... I'm using JQuery for this. The problem is that, when I drag an object from the side bar, the DIV that I'm dragging appears behind the main area, thus it looks really bad. I took a screenshot of the problem: http://i.imgur.com/Xu4GM.png The div I'm dragging has this CSS: .reporte_arrastrado{ width: 150px; height:...

HTML5 elements working in Chrome but not Safari or Firefox?

Hi, I'm using the HTML5 elements and in a project i'm working on (see it here) and the css seems to be working fine in Chrome. However, it doesn't appear to be working in Safari or Firefox (I haven't tested IE, but I'd imagine it's the same), and the page layout is all over the place. Any ideas why this may be? I know Firefox and S...

How can I create an automatically generated alteranate table row color ?

Good day, I've been trying to make this CSS code work: table.mytable { margin: 0; padding: 0; border: 0; font-size: 0.8em; border-collapse: collapse; } table.mytable td, table.mytable th { width: auto; padding: 2px 4px; vertical-align: top; } table.mytable th { color: #fff; background:url(images...

possible to get table columns to auto width to fill screen?

I'd like to have the width of my table 100% of screen width - so flexible to different screen sizes. is it possible to have my columns automatically resize proportionately? I've tried give the td's percentage widths but this doesnt seem to work, firebug shows that the tbody isnt filling the tables width? <table class=""> ...

Slideshow with javascript without absolute positioning

I need something like this http://jonraasch.com/blog/a-simple-jquery-slideshow but w/o the absolute positioning. Is it possible? If not, how do I deal with the absolute positioning - if I make it centered for one screen res, it won't be for another. Any tips? ...

How to get image info from css into MasterPage'gridview?

i try to givee style via GridView.css into Masterpage my masterpage includes 3 pages also 3 pages sources has GridView. i added head tags css file: <link type="text/css" href="../CSS/GridView.css" rel="stylesheet" /> also give property my GridVew source: <asp:GridView ID="gwRehber" runat="server" AutoGenerateColumns="false" CssClass...

<UL> displaying incorrectly - works fine in all browsers except Firefox 2 (screenshots included)

Hey folks OK, here's a screenshot of what it's SUPPOSED to look like: And here's a screenshot of how it looks in Firefox 2 (on both Mac & PC)... Every other browser gets it right (even IE6?!). The source code is an Unordered List using Sprites with :hover effects. Here is some code for you: The HTML: <div id="votes"> ...

JQuery: How to find what is between two text points

Hello, Let's say I have this: <div id="wrapper"> <pre class="highlight"> $(function(){ // hide all links except for the first $('ul.child:not(:first)').hide(); $("a.slide:first").css("background-color","#FF9900"); /* The comment goes here. */ </pre> </div> With Jquery, I want to find what is in be...

Hide html horizontal but not vertical scrollbar

I have an html textarea that is of fixed width, but variable height. I would like to set overflow:scroll and be able to show a vertical scrollbar, but not a horizontal one. I am not able to use overflow:auto due to other things specific to my situation. I know there is no way using CSS 2 to show only vertical but not horizontal scrollba...

Google Chrome bug with tr background

I'm trying to set a background-image to a table row, but background is applied to all its td children. In IE7 there is the same bug but it is solve with tr { position: relative; } Any hint about it ? Thank you ...

django html/css windows mac problem width additional space on the top of the page

Hi, my problem is really strange... We are developing shopping-cart system in django. The problem is, when I change anything even single letter on my computer, strange space on the top of the page appears, see the picture... I don't know since when the problem appears. But if i go back to previous version (in this case 210, we use svn),...

How to get GWT console/development mode to generate css errors?

Dear all, I noticed that when running GWT, it doesn't alert me of css errors such as missing/misspelled classes. Even the error console of Firefox doesn't prompt anything. I'm skinning my web app pretty intensively, need a way to show up the css errors, any suggestion that I can try? Thanks in advance. ...

Transparent div background, with a tint of color?

Hello. Can anyone tell me how to make a div's background transparent, but with a tint of color, such as black. I've tried this using CSS although I can only get the div to be either transparent or filled with color. Thanks for the help! ...

How can I Mimic Gmail's Basic HTML option

Does anyone know to quickly implement an alternate version of my site with just basic HTML like how GMail does it? ...