css

Color (colour) differences between browsers?

I have just noticed a site I am working on looks different in Chrome than other browsers (saf, ff), everything is more saturated in Chrome, even a background-color rgb. I can't figure out what is making this happen, can't be anything to do with img color profiles otherwise the rgb background color surely wouldnt be affected.. Any ideas?...

How to determine the generic font family name for a System.Windows.Media.FontFamily

Is there any way to interrogate a FontFamily instance to determine the name of the generic family group that it belongs to (serif, sans-serif, cursive, fantasy, monospace)? I understand that these family groups are prescribed by CSS and are therefore not directly related to the FontFamily class, but I am hoping that the underlying fonts...

CSS performance question

I am wondering when writing css rule, which one below render faster: #avriable_info table td {width: 250px; font-size: 13px;} or #avriable_info table td { width: 250px; font-size: 13px; } ...

DotNetNuke Skinning.

Hi there, I was reading this tutorial from the DNN website http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/2675/DotNetNuke-Skinning-101-Part-2.aspx I found the tutorial to be very useful, however there was an issue when I tried to apply the CSS style. For example after adding the content pane in the initial index.html I have...

Frameworks/templates for web developer

Hi, I'm C/C++, Java developer and now in order to put some variety into my work, I decided to start playing with web development - i'm using django. However, I'm hopeless with graphics and advanced css. I would like to build and ship some apps with elegant and simple design. Are there any frameworks/templates which let me build somethin...

Adding @import statement in a dynamic stylesheet for IE7+

I have a problem with adding a dynamic style element with @import statements for IE. Try this: var string = '@import url(test.css)'; var style = document.createElement('style'); if (style.styleSheet) { // IE style.styleSheet.cssText = string; } else { var cssText = document.createTextNode(string); style.appendChild(cssText)...

Building a box with css

How can i do this box in css? it could grow by content.. http://img824.imageshack.us/img824/1953/box.gif Thanks ...

Hi i want to know the best css sprite available in online?

Hi i have been using this http://spritegen.website-performance.org for css sprites generator. But it not worth great. I have seen sites like yahoo,bing.google they used css sprite very great and upto the high level. where to get the css sprite generator like that in online. Moreover the image is totally compressed and minimized. I would ...

What styles are used by tabStyleName?

The language reference says "Name of CSS style declaration that specifies styles for the tabs. The default value is undefined." But, what is the "type" of style that is being used? That is, what style properties can I put in that style definition. For example, I wish to set the disabledColor of the text on the tab. I couldnt seem to do ...

Why does Firefox 3.6 alter jQuery and CSS properties?

Why does Firefox 3.6 alter jQuery and CSS properties? Alright, more specifically. I have a crossfade plugin to create a glow effect between two images that are placed on top of each other. The function (posted below) will make the top image transition to an opacity of 0 in 200 ms on hover and transition back to an opacity of 1 in 500 m...

Can I override a #id ul li behaviour with a class definition

I have an area that is identified by a #id and there is a CSS like: #id ul li { margin:0; } can I, for a specific UL in that area, override the margin-setting? I understand that #id creates very high priority in evaluating the formatting. I have tried: .myclass ul li { margin-left: 20px; } and #id ul.myclass { as well a...

How to achieve two-column layout with the following HTML code?

I couldn't seem to get my CSS working properly in IE (I'm using IE 8), and I'm hoping someone could share some opinions on this. Here's my dumb-down HTML code:- <div id="column-content"> <div id="content"> <p>This is some text</p> <div class="toc">Right content</div> </div> </div> What I want is to ...

PDF to download, not link to view/download

Hello, I am trying to make it so when you click "download here" a pdf will download to their desktop. Could anyone please provide me with information on how I should go about doing this? Sincerely, Caleb ...

Cell Padding Using CSS on an HTML Table

I need to pad just one cell in my table. I gave the td element a class and defined the class in my css file like this .itemQuantity { padding-right:30px; text-align:right; background-color: #EEE; } Padding-right does not seem to be doing anything. ...

How to tell if an item is on the screen (WITHOUT using scrollbars)...

Hey, Is there a way that I can only render the elements on the screen and leave those others to be rendered when they come into view? Basically like 3d culling, but on a website ^.^ [edit] I take it that this isn't possible then? [/edit] [edit2] I tried LazyLoad (jQuery plugin) but that initialised on windows scroll [/edit2] [edit3] S...

Create two column footer Using div?

How do I create a two column footer using div only? (tableless) The footer is 980px it should contain.... Copyright 2010 xyz.com (left side) About us | privacy | terms (right side) ...

How to style a text field so it doesnt have a border?

I have a text field and I dont want to show border around it as it is a read-only text field. How can I make it to appear without the border and without the background color? ...

What's the correct way to hide the <h1> tag and not be banned from Google?

The website I am working on uses an image defined in CSS as the main logo. The html code looks like this: <h1>Something.com | The best something ever</h1> I would like to display just the image defined in CSS and pass the information from the h1 tag to the search enginges only. What's the correct way to do this? Google is very strict...

Change background "onfocus" + other things

I have the script <input type="text" name="name" value="Joe Bloggs" onfocus="this.value=''"/> Just like I am doing with the onfocus="this.value…" can I change the background of the field (+ change other things?) Many thanks. Also, does anyone have a better idea of how to do the script above, but so that the text reappears when the d...

CSS liquid layouts with fixed padding/margins

I was wondering if anyone knows of a way to incorporate pixel width paddings or margins to a fluid column design, without the need for extra html markup. To further illustrate, consider a simple html/css layout like this one: <style> .cont{width:500px;height:200px;border:1px solid black;} .col{float:left;} #foo{background-c...