Hi all,
i want to know how can we select more than one option from a select box like given below:
Colors
Black
White
Tan
Navy
Royal Blue
Red
Yellow
Hunter(Dark Green)
Kelly(Green)
Burgundy
Thanks
...
I see that it uses png images for the rendering, so I am assuming that means I need to provide my own version of these images, with colors changed appropriately. Where do I put these images, and how do I apply them in the CSS?
...
I'm looking for a way to insert a <style> tag into an HTML page with javascript.
The best way I found so far:
var divNode = document.createElement("div");
divNode.innerHTML = "<br><style>h1 { background: red; }</style>";
document.body.appendChild(divNode);
This works in Firefox, Opera and Internet Explorer but not in Google Chrome. A...
I have a <table/> in a ViewUserControl that I have given the tag a class="tblRaised" attribute/value. Visual Studio keeps underlying tblRaised and telling me - The class or CssClass is not defined.
Why is the intellisense engine trying to validate my CSS class names here? Anyone else run into this? Is this a bug? How would intellisense...
I am using FancyBox to generate a popup image.
FancyBox (In case you are curious.)
It pops up a div with z-index: 92;.
I have a Flash animation running which is far below that z-index.
My problem is that in two different Firefox browsers (same versions) I have different results.
In one, everything appears OK. In the other, the F...
I'm specifying a color hex code as the background-color of a really long div. However, i'd like this color to be only repeated horizontally, from left to right, in the first part of the and not go down any further.
Can that be done using background-repeat:repeat-y or is there another method?
...
What's the best way (if any) to make the inside box transparent so the image can be seen with no opacity (clear image) and the rest of the outer box opaque. So far this is what I'm doing:
<style>
#a {
background-color: black;
float: left;
} #b {
opacity : 0.4;
filter: alpha(opacity=40);
} #div {
position:absolute;
h...
If I have a HTML form with some embedded divs, and after the CSS is applied the sections of the form end up spread all over the page outside of the original <form> boundaries, does/will the form continue to work. What do the HTML specs say about this kind of thing?
...
Well I know it's not evil just not as pretty in semantics as <strong> and <em> right?
However, with <b> becoming more semantic as <strong> and <i> as <em>, why isn't there a semantic twin for <u>?
In styling:
So there's a CSS style text-decoration:underline for <u>, but isn't there one font-weight:bold for <strong> already? Thus goes ...
Honestly I'm very bad at CSS and not good at dealing with color / design.
Are there any helpful sites for things like pre-made, nicely skinned component, or layout of the whole site?
Thanks!
...
Is there an elegant way to align 3 elements left, center, and right on the same line?
Right now I'm using 3 <div>'s all with width:33%;float:left; and it's not working too well.
...
Hi,
Given the following HTML:
<div id="container">
<!-- Other elements here -->
<div id="copyright">
Copyright Foo web designs
</div>
</div>
I would like the div with ID 'copyright' to stick to the bottom of the 'container' div, can I achieve this without using absolute positioning? If the float property supported a value o...
I am working on a personal website. On the front page, I have a listing of all the articles, and their date published. This data would be a perfect use for a table tag. The table would only be used to display this tabular data.
I worked on it again, and was able to achieve the same layout using unordered lists and a little bit of c...
My HTML code is just dividing the pages into two columns, 65%,35% respectively.
<div style="float : left; width :65%; height:auto;background-color:#FDD017;">
<div id="response">
</div>
</div>
<div style="float : left; width :35%;height:auto; background-color:#FDD017;">
<div id="note">
</div>
</div>
In the response div, I ...
How do you get the rendered height of an element?
Lets say you have a <div> element with some content inside. This content inside is going to stretch the height of the <div>. How do you get the "rendered" height when you haven't explicitly set the height. Obviously, I tried:
var h = document.getElementById('someDiv').style.height;
...
I am creating a new website and this question came up, statistically, including all browsers (phone browsers as well), which gets disabled more often? Images, Javascript, or CSS? Reason Im looking for an answer is to design the image-replacement technique that covers the most recurrung scenarios.
...
I've got a client with an HTML page with a couple of scrolling divs with text content. She's using a heavily image-based design so the default scroll bars don't suit it at all. She'd like to use a different style but to my knowledge that isn't possible.
What do you think?
...
I have a website design that includes text input fields that look like this:
I'm wondering what the best solution for creating this input field is.
One idea I have is to always have a div around the input with a background image and all the borders disabled on the input field and specified width in pixels, such as:
<div class="borde...
The question covers most of it, but I'm trying to present a well articulated argument towards a senior developer who wants to abandon conditional stylesheets altogether (IE6, mobile, etc). Bear in mind we're not actually eliminating IE6, just the stylesheet.
Or am I being crazy and should just accept this?
...
How can I use jquery to remove a SPECIFIC div that has no children (at least no children that isn't whitespace). E.g.
<div id="outer">
some content
<div id="removeme">
</div>
some more content
</div>
Want to completely remove the div with id="removeme".
...