css

where does `resource://gre/res/html.css` come from?

I'm just using ASP.NET MVC 2 and realized that I get a ghost stylesheet And I can't get ride of it... Biggest problem is that on other browser I do get the same behavior with this ghost CSS, and it's driving me crazy! On the image above I'm using Firefox 3.6.11 with Firebug 1.5.4 I have this html.css file nowhere in my Visual Stud...

Placing Place Holder for Image

I have an image icon in an HTML page that should show right to a label only when some condition is true. If the condition is false, it should not show, but it should still take up the same space. I'm sure most of you have done something like this and I got a couple of solutions. Put the img tag as usual but add to its style attribute ...

unable to remove border when i have an iframe within an iframe for IE

i have an iframe nested inside another iframe, and for both iframes i have these attributes: frameBorder="0" marginWidth="0" marginHeight="0" scrolling="no" Ive also tried: style="border: 0px; margin: 0px; padding: 0px;" It seems that no matter what I try, the border of the inner iframe keeps showing, as well as the padding withi...

CSS layout 100% height extends to bottom bar

Hi I have css code to do layout. i have basic header panel, footer, left panel, and center panel. I want to have left panel and center panel automatically stretch to bottom(blue and gray part all the way to black footer). is there any way to do that? following are my codes. thank you, body { text-align: center; } .wrapper { ...

Changing anchor font color during a <td> hover?

Hi Guys, I want to change the text color of an anchor link that sits in a table cell on a hover. However, the change I wrote in my CSS file to accomplish this, doesn't seem to work. Could someone suggest what I might be doing incorrectly? This is what I have in my CSS file: td:hover { text-align: center; background:white; ...

invalid argument for .css()

I'm using this code with jquery $(".tab").css({'background-color': '#f3f6ed', 'border': '4px solid rgba(0,0,0,0.1)', 'border-bottom': 'none'}); It's to change the style for a tab when I click on it. It works in browsers expect for explorer (stupid microsoft..) I get "invalid argument" Not sure how I can fix this. ...

Google Chrome text shadow blur bug

Google Chrome has an extremely annoying defect in the blur algorithm it uses for text shadow (possibly other shadows too). As a result, the shadow "eats" into the letters and makes the text look strange and difficult to read. One of the places you can see this clearly is on Twitter - http://dev.twitter.com/pages/auth. The text-shadow is...

Autocomplete jQueryUI appears below the lower edge of visible screen in IE

I have problem with Autocomplete, it works well in all browsers except for IE. I have it positioned inside <td> (and <tr> and <table> of course) that is inside <div> that has CSS like this: left: 10px; top: 400px; position: absolute; width: 350px; none of its parrent elements have position/width modified in any way.. Yet when I type...

How to display the content of a tab when a button is clicked

I have a page, home.php. On the page, I have CSS tabs tab1 and tab2. The tabs are on the same page not different pages. I want the content of tab2 to display whenever I click the submit button in the content of tab2, not take me back to tab1. How can I use JavaScript to implement this behavior? <html> <head> <title>home</title> </head> ...

Vertical Align a DIV with dynamic height inside another DIV...

I have been looking around and seem to find lots about aligning a div vertically however not with a dynamic height div surrounding it.. i have a moch up of what i require, built from all sorts of different templates i have found.. i just cant get it to do what I want maybey i am totally wrong?.. i thought it would be simple however has t...

asp.net datalist - change styling

<asp:DataList ID="ItemsList" RepeatDirection="Vertical" runat="server"> <ItemTemplate> <asp:LinkButton ID="SecondLevelItem" runat="server" CommandName="second" OnCommand="SecondLevelItem_Onclick" CommandArgument="<%# Container.DataItem %>" Text="<%# Container...

@font-face for font variant

Does anyone know how to use the Font Squirrel @font-face kit generator, or something similar, to output a variant of a font, i.e. the bold variant? I am using Gill Sans on my website and it is set to "font-weight: 900" or "font-weight: bold," which looks great on my machine because it has the font installed. But if I just embed the font...

Can you use CSS to reference a parent or child of a certain object?

Hi all, I guess I am spoiled with JavaScript. If you want to change something about the parent, you can code something like parentNode.style.etc. <TABLE id="hasID"> <TBODY> <TR> <TD> <IMG id="hasID2" src="somePicture.png"> <IMG id="hasID3" src="someOtherPicture.png"> </TD> </tr> <tr> ...

help with controlling links within a div

Ok here is my problem, I've got a div with a hover effect on it, it changes colors when the mouse is over the div, in turn the text inverts colors so that it remains readable. Now my problem is that the links themselves don't follow the color schemes and attacking the links on their own outside the div won't work until the mouse hovers d...

transparent background with 1px borders?

Is it possible to have a div tag that has 1px black borders and a transparent background, so only the borders are showing? is this possible? Any examples? A really appreciate it. Erik ...

place background image outside of a <table> <td> <tr> borders in embedded html mail

Hi, Looking through some html email examples, I noticed is all about tables. I wanted an image inside of one of the rows of the main table to look like half of the image is outside the table and the other half inside. I can't get the solution to do that. Any helps would be appreciated, really appreciated Here's is what I like. The o...

Photo Gallery - Dynamically Determine the width/height of an Image to Maximize the view

Hello, I'm building a photo gallery. The photo gallery consists of images that users upload. These uploads are resized, and can be of any dimension, 100x100, 2500x2500. My Photo Gallery View page is Fluid, meaning the width of the page is not fixed. In the Photo Gallery page I display the original Image updated - no resizing ( though I...

I Can't normal open my page ?

I Can't normal open my page show me all but without css when i refreash work fine ? thx ...

How to make JavaScript Math.random Repeat?

Hi, basically i have a page on my site with boxes that slide to reveal a background color. I want this background color to be random on load of page by adding a class to the element, eg .blue, .green etc... I have created this code and as you may notice this randomly sorts the color class and applies to the element, this works for the f...

Help with IE8 iframe's style affected parent page

I hava a page that includes an iframe, and the iframe's style affected parent page when mouse move out, what's going on? ...