When you click Questions, Tags, Users etc. at the top of stackoverflow, the one you're looking at becomes highlighted orange. This is (usually) done by changing the css of one of them to be 'selected'.
If you have a single template that all your pages are built with, and that template includes these buttons across the top, how do you hi...
Is anyone aware of a good javascript library to obtain original (i.e. not computed) style for a given element in the DOM? In other words, something one could use to produce the results in Firebug's style tab. Like Firebug, it should take into account inheritance, shortcut properties, and all the other nuances of CSS.
...
#sitenavmenu-content-menu li:before
{
content:"| ";
}
I want to add a | and two spaces before each list item. However, for some reason it prints the word nbsp and not the space. Any ideas?
...
Hi all,
I m using a div in my web site by using float:left and float:right after that is used clear:both, its working fine in all browser except ie7 i have tried a lot of things please tell me a solution to resolve this problem....
css:
.clear
{
clear : both;
margin : 0px;
}
html:
<div style="float:left">some text</div>
<...
How do you set the visibility of a (fileupload) control from ASP.net code (I need to hide a fileupload control in a webuser control from server site, otherwise hasFIle is always false).
Also setting the "Visible" property to false does not work (as is confuses the AJAX panel so the fileupload forgets that it has a file).
theFileUpload....
I have a span text block inside a paragraph. Inside this span block I have two paragraph breaks. On webkit, the browser renders the first paragraph correctly but fails back to browser default settings on the last two. Why?
<style type="text/css">
span.post-content {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 16px;
}...
Hi All,
I have a select list of gender
code:
<select>
<option>male</option>
<option>female</option>
<option>others</option>
</select>
I want to use a image in drop down list as drop-down-icon.jpeg
i want to add a button in place of drop down icon
how to use it
Thanks
...
Here's the HMTL
<ul>
<li>Salads</li>
<li>Fruits
<ul>
<li>Apples</li>
<li>Prunes</li>
</ul>
</li>
<li>Main Course</li>
</ul>
Here's what it looks like now:
Salads Fruits
Apples Prunes
Main Course
And here's what I'd like it to look like:
Salads Fruits Main Course
Apples P...
I have a span that will contain text. I would like the span to expand to a maximum of 500px to accommodate the text inside. After the max is reached I would like the text to display ellipses for any text overflowing the max-width. Is this possible? I tried the following, but this did not do the trick.
Thanks
{
position: absolut...
Hi,
I have a website using a huge background image (2000x1500) in a div container (100% x 100%).
When I open that site on Safari on an iPad it gets scaled down (~40%) in a different proportion than the content (~80%).
I moved the background to an img-tag in a div with 100% width and 100% height and an overflow setting "hidden". Exactl...
Hi All,
Does any one know why my Safari is not taking padding in select lists? It's working fine in FF please tell me what to do. is there any issue with the doctype?
code:
<select style="padding-left:15px">
<option>male></option>
<option>female></option>
</select>
I'm using the following doctype;
<!DOCTYPE HTML PUBLIC "-//W3C//DTD...
Can I use Character Encoding for Regular Expressions...?
e.g.
this.html().replace(/<\/?[^>]+>/gi, '')
Instead of:
this.html().replace(/<\/?[^>]+>/gi, '')
...
I'm using the Google webfonts API to embed Droid Sans on a page. All is fine, except for the descenders (i.e. the dangly bits on y, g, etc). The latest versions of Firefox, IE and Chrome on my Windows Vista box are all cutting the bottom off.
<!DOCTYPE html>
<html>
<head>
<title>Droid sans descender test</title>
<meta charset="utf-8">...
html, body {margin: 0px; padding: 0px;}
#pageContainer{ margin: auto; padding: auto;}
#contentContainer{ margin:150px; width:1100px; height: 100%; overflow: hidden; }
#leftContainer{ width: 80%; min-height: 800px; background: #009900; float:left;}
#left1{ margin:80px 0 0 80px; height: 550px; top:0px; z-index:1; background: #000000;}
#le...
We're developing a site for a client right now and my boss (designer only) is once again making me increase letter-spacing on the text so that it looks 'prettier'. I am of the firm belief that this often causes eye-strain and hinders readability in body copy, but being the boss, she is of course always 'right' until I can provide her wi...
I am looking at a website on the internet with the standard centered box design (the entire site is centered in a box and has a border each side). As you shrink it, the border gets smaller but the content stays the same size. This is fine.
However on their site, once you get smaller still, you simply get scrollbars. The content remains ...
<a class="success" href="javascript:void(0)"></a>
//CSS for setting background for above link
a.success:hover{
//set background image
}
What my intent is to change the class of link on server side based on success/fail and set icon for the link accordingly. But above CSS is not working as expected.
Can someone plz help with this.
...
Just recently, my client's blog http://robertnogueira.com/ encountered a bug. If you look at the site the footer has been displaced. It's been running fine until I tried to populate the posts for the 6th time with caff content. It got broke and I don't know how to fix it.
I chose to ask help here because the folks here usually responds...
Hey everybody,
I've been seriously preparing to take the entrepreneurship leap. I've got a great partner, and we're going to take on some minor funding, and do the thing.
Our product is web-based- I'll deem it YAWA (Yet Another Web Application). Both my partner and I have database and web development experience, and I've had a front-...
Hello,
I want a framework (or anything) that helps me make rich client guis. I know my server-side, but I don't like programming in ajax, javascript, css etc.
Something that wraps the ajax code in some objects/methods with clean syntax, would do the trick. I want to write code in java instead of defining css and html tags.
Does Java ...