css

php css-less dynamically changeable css designed websites

I am going to start on a website whose requirement is to change the color scheme after every 2 weeks. I am looking for a dynamic solution to change colours and somewhat structure of a website using css & php. One solution which i can see is using dynamic css method for example <?php header("content-type: text/css"); $mencolour = "#f...

Difference between padding and margin?

Possible Duplicate: what's the difference between padding and margin? Well, what's the difference? I haven't really understand it... ...

Invisible CSS comments

I have recently begun the practice of using <%# Ruby on Rails comments %> in my html.erb files, as these do not display in the source code that is then viewable by a user. Is there a way of adding comments to .css files that keeps them private from the eyes of devilish onlookers? ...

Dreamweaver Specific CSS?

I'm using a fairly basic vertically expanding page layout in CSS, and I'm trying to adapt this layout so that my client can edit the page using templates in Dreamweaver. It's... well, rough going. I'm used to doing most of this stuff by hand, but it's working out fairly well. I'm using a min-height trick similar to this page to get the ...

css3 last-child not working as expected

I have match listings dynamically generated. After each member I display a li that displays VS within it. However the very last ul li in the div match shouldnt be visible. Any ideas how I can do that? HTML <style> .match { } .match ul { } .match ul li { float: left; margin-right: 50px; } .mat...

what is the color limit of the web?

hi there. what is the color limit for designing a website? is it limited to 256? will it work on all browsers if i select any color from photoshop color palette? edit: i am talking about the color attribute in the css ...

IE6: width or height set to 0px does not work when content inside

Hi Guys, If I want to set width of a div containing some text and I want to set the width of that div to 0 in IE6 (I have not checked in IE7) does not work!!! Please check the HTML below: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/...

Why not define font-weight or font-style in @font-face, Font Squirrel?

When we define @font-face styles, we can define whether the referenced files are for the bold, italic, or bold italic versions of a font, as discussed in this SO question: http://stackoverflow.com/questions/2436749/how-to-define-bold-italic-using-font-face Example: @font-face { font-family: 'FontinSans'; src: local('☺'), url('...

centrally positioning div is not quite central

I have my site's main content which is centrally positioned (see div#wrapper), as it's width is 800px. position absolute, left 50% and margin-left is -400px. works perfect . my lightbox however (click on Client or Guest tab), is not positioning centrally. I've looked at Chrome Developer Tools and Firebug, and can't see anything wrong wi...

How do I check to see if the text of a jQuery variable contains specific text?

So I have captured the ID of an image in a jquery variable like so: $("#tag img").click(function(e) { var element = $(this).attr("id"); How do I then parse the var element? I would like to put it in an if statement like this: if ( $(element *= 'square' ) { $('#tag #view_name').text("Tag with a Square"); } elseif ($(el...

Extra padding on Chrome/Safari/Webkit -- any ideas?

My page has this extra padding on the top of page that I'm unable to remove. Tried everything under the sun and hope someone can show me the way. Any ideas? ...

Fill SVG path element with a background-image

Is it possible to set a backgound-image for a svg path element? For instance, if I set the element's class to wall, the css style .wall {fill: red;} works, but .wall{background-image: url(wall.jpg)} does not, neither .wall {background-color: red;}. ...

webpage unable to load css file

Hello folks, this is a newbie question for you guys. In file /home/myhome/apache-tomcat-6.0.29/webapps/view/test.jsp I have <link rel="stylesheet" type="text/css" href="WEB-INF/resources/view.css"/> and the view.css file is located at /home/myhome/apache-tomcat-6.0.29/webapps/view/WEB-INF/resources/view.css For some reason, it's not...

How to position the text or a radio group's itemf?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <title>Input data</title> <link type="text/css" rel="stylesheet" href="css/reset.css"> <link type="text/css" rel="stylesheet" href="css/my_css.css"> </head> <body style="position:relative; top=0px; left=0px;"> <input ty...

jQtouch Sort Buttons

Dear all, I looked at the documentation of jqtouch but I could not figure out how to create iphone style sort button group like this attached picture. http://img843.imageshack.us/img843/8669/captureov.png Do you have any idea how to do this with jqtouch, is there any plug-in doing this for jqtouch? Thank you for your response, cas sak...

Styling <select> tag for iPhone

When a select tag is used in a html page, is there a way to style the text size in the scroll wheel that shows on the iPhone? Linda ...

How to create a DIV inside another DIV?

I was trying to create DIVs inside div. But i am facing problem in centering the div. I followed http://stackoverflow.com/questions/114543/how-to-center-div-in-div Using the approach suggested in above question, the DIV was centered horizontally but not vertically. http://jsbin.com/oyemu4 For the time being i am using margin-top: ...

Cross-browser sizing of floated divs inside of floated divs

I'd like to get the following sizing behavior on a row of data. The 'abcd...' field is a variable size, and I'd like as much of it displayed as possible after all the other fields have taken up their required space. The '0123...' field is a variable size, and I'd like fully displayed right after the first field. The 'X' field is a know...

Is it possible to edit DOM elements that get loaded via an <iframe> with jQuery?

I have the following HTML code: <body> ... <div id="users"> <iframe src="http://control.intranet/userlist.php" height="100"> </div> ... </body> Where the //control.intranet/userlist.php loads a list of users from our intranet control panel. This list looks like this: <div class="user"> <span class="name">Boda Cydo<...

Why would you give a style tag an id

Hi have noticed a few sites that give the style tag an id such as: <style id=style-id></style> Can anyone explain firstly why you would do this and also the benefits of doin so? ...