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...
Possible Duplicate:
what's the difference between padding and margin?
Well, what's the difference? I haven't really understand it...
...
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?
...
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 ...
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...
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
...
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">
<html xmlns="http://www.w3.org/...
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('...
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...
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...
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?
...
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;}.
...
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...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<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...
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...
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
...
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: ...
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...
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<...
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?
...