css

How can I solve this font rendering issue on Firefox on OSX?

I've run into a strange font rendering issue on Firefox on OSX. It seems to be adding an extra pixel above the font whereas Firefox on Windows does not. ...

HTML DIV with absolute position: how to make it 100% wide and zoom-safe?

I have a following HTML/CSS (simplified): <body> <style> body { margin: 0px; padding: 0px; color: #fff; background-color: #090909; text-align: center; } #content { width: 500px; margin: 0px auto; ...

Real Nested CSS? (Not Selector)

Hello guys, I am first time poster. A question. How do a make a css declaration that only works within one DIV, but, not overwriting the global css? I want to jQuery loading a page into a DIV, however, the page's CSS changed my own site's CSS. I don't want that. Also I can't just take out CSS because I want them looked as intended from t...

DIV floated to right appears in center, while left float appears below

I have a main content DIV with a width of 960px, and two floated DIV elements inside. Here's a simplified version of it: <div id='content'> <div id='main_data'> ....Data.... </div> <div id='sidebar'> ....data.... </div> </div> And the CSS: div#content { width: 960px; position: relative } div#main_data { ...

template is restricting my div javascript overlay

<style type="text/css"> #overlay { background-color: #ccffcc; display: none; margin-left: -400px; position: absolute; top: -250px; left: 50%; width: 800px; height: 500px; visibility: visible } #container{ color: white; background-color: #0ff; text-align: center; position: absolute; top: 50%; left: 0px; width: 100%; ove...

CSS: Dropdown float on top

So i have this dropdown made in html/css/js.. it slides down on mouseover, but right now it slides down wrong, i mean it moves my text down which i dont want it to do.. i want it to like float over it so the text is behind the menu that comes down At left its how it is, and on right side its when mouse over. and as you can see the "exa...

vertical text to display in in table TD?

Hi How to have text in Vertical in PHP ?? I need text to be displayed in vertical style in Table Td text it should print vertical or i need it to rotate ? ...

HTML Class not working?

I'm trying to change the text color in a <p> to gray. I thought doing something like <p class="gray">content</p> and p.gray { color: #333333; } would work but it's not doing anything. The color remains black. Help please? EDIT TO INCLUDE ENTIRE CODE HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www....

CSS: Menu with dropdown same line as the rest + IE

<div id="menu"> <ul class="menu"> <li><a href="home.php">TEM</a></li> <li><a href="#">TEM</a></li> <li><a href="#">TEM</a></li> <li><a href="#">TEM</a></li> <li><a href="#">TEM</a></li> </ul> <img src="images/button.png" width="126" height="23" class="menu_class"> <ul ...

Internet Explorer 8 compatibility issues with eBay

Hello, I have designed a template to list items on ebay and I have some compatibility issues with internet explorer (8 in this case..i assume other version as well). Here is a beta test of the item I've put up for sale with my new template: http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&amp;item=300451388766 The part of the page that ...

Should I avoid using !important in CSS?

Sometimes !important is useful, for example if I have defined common style for all links on the site (selector, say, a), but when I want to override some rules I have the following choices: Use more specific (longer) selector Use !important Which way is better and may be there are some guidelines? ...

Change text selection highlight with JS

For standard browsers you can use something like this to change the coloring of selected text. div.txtArea::selection { background: transparent; } div.txtArea::-moz-selection { background: transparent; } div.txtArea::-webkit-selection { background: transparent; } Is there a way to do this with javascript? My users can select tex...

jQuery controlled interactive "game" with CSS sprites

Hey, I was wondering if I could make the header on my page (http://marioplanet.com/images/logo/logo.png) interactive by having a little mini-game of sorts occur upon clicking on a part of the image. It would have Mario, only Mario, on top of the text, making the rest of the characters vanish upon the start of the "mini-game". Then, the...

Should images be referenced from CSS or from Content folders with <img/>

I ask because my buddy posted a question earlier on How to resolve issue with image path when testing HtmlHelper? and a few of us in the office got talking about how to resolve this. One of the guys suggested that he wouldn't have this issue (Test crashing because it has a dependency on functionality in IIS) if he was referencing the i...

Is it possible to hide / show table columns by changing the CSS class on the col element only?

I'm trying to hide / show columns in a table based on users choices during runtime. I defined two CSS classes: .hide { visibility: collapse; } .show { visibility: visible; } I tried to set these styles on the <col> element corresponding to the column I want to hide / show: <table> <thead> <tr> <th>Column 1</th> <th...

How to disable right click in webpages

Possible Duplicate: How do I disable right click on my web page . How can I disable right click in web-pages that I am developing? ...

IIS can't find JavaScript and CSS files

Hi, I've been working on this for a while and was wondering if anyone has run into the issue of error 404 on IIS. More specifically, when I type in http://localhost/test/test.aspx, the page runs, but the referenced files (JS and CSS) are not being used. Does anyone have an idea on what this could be? keep in mind that I'm new to IIS (...

Include menu on every page

Let's say I have a simple CSS layout and my menu is a column on the side. This menu is going to be on every web page (About 10 web pages). If I have items on this menu in the form of links and such, how can I make it so that if I add a link on one page, it will add it to all pages? Would you just make it a PHP page and in that <div> elem...

Similar Color Shades codes

If I see a particular shade of red on a website, how do I find out what the same shade will be in a different color? Example in Green or such? ...

How does CSS work with ASP.NET web controls?

Let's say I have an aspx page with a Menu web control. The menu web control renders as a html table on browser. My plan is to add css styles on the aspx page which will be sent to the browser. Let's say I add the following style to the aspx page td { background-color: Red; } This style gets sent to the browser together with the re...