css

ASP.NET MVC Data Validation - Highlight Table Row vs. TextBoxes

On an ASP.NET MVC View, I have a couple of checkboxes, one for email address and one for phone. I want to make sure that at least one is checked (both can be checked, so a radio button is not ideal) and if neither are, highlight the row with a red border just like a textbox is with the validation functionality... I have other fields th...

Background image showing up too high

I have a background.png that for some reason when I insert in body as background-image shows up about 30px too high, and 20px to much to the right. I set: html, body, * { margin: 0; padding: 0; } and that doesn't seem to effect it. Any help would be appreciated :D ...

CSS Class Selectors

I'm more of a server side person, so for the css sample below, I understand what the first 2 groups of css selectors are doing. I don't understand the 3rd. Given that the home class only occurs once in the html, it seems redundant to specify the class twice. This comes from the site clearleft.com. What is the purpose of the last ...

Including Browser specific CSS file when JavaScript disabled?

Hi guys, I have 2 CSS files for my site, one for all normal browsers and other for the retarded Internet Explorer. I am including either of the CSS file depending on a JavaScript which checks the browser capabilities. What would be the best option in case the user has disabled JavaScript! I should be including some CSS without which all ...

how to remove all inherited CSS formatting for a table?

I have a table which has a certain style due to the css file for the page (it has blue borders, etc...). Is there a simple way to remove the css for that specific table? I was thinking something along the lines of a command like style="nostyle" Does anything like this exist? ...

Css in Flex without compiling?

Hi community, I added an external stylesheet file (css) to my flex project. Is there a possibility that the css is not compiled with the swf? It would be great if I could put the swf on my webspace and afterwards only change a css file to customize my application and fit it to the colors of my homepage. Thanks in advance Sebastian ...

How can I override HTML body bgcolor attribute with CSS?

I'm writing an external user stylesheet for an old HTML page that specifies the background colour in the body tag: <BODY BGCOLOR="#808000"> (note: I can't edit the HTML). I've tried writing the obvious stylesheet: body { background-color: #ffffff !important; } but it has no effect: the original colour remains. Can it be done with...

How do i convert 5 click functions into one with changes values.

How do i convert 5 click functions into one? eg $("div#styleswitcher a.green").click(function(){ $("container").css({'background' : 'green'}); ) $("div#styleswitcher a.blue").click(function(){ $("container").css({'background' : 'blue'}); ) $("div#styleswitcher a.red").click(function(){ $("container").css({'background' : 'red'}); ) ...

Simple Web UI tool for non UI people

I've recently had an upswing in the number of people looking for web applications that look good too. I'm not much of a design guy though. I need a tool that isn't as complex as Photoshop or Stylevision but will still help me to create a nice clean web UI (like stackoverflow for example) that can be then be integrated into a ASP.NET ma...

How can i fix my CSS code to work with IE?

Guys I have the following CSS code, works fine with Firefox, Chrome but breaks like hell when i run it in IE7! <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Box Test</title> ...

hover working when window out of focus confuses user

A few weeks ago I added a suckerfish (css + javascript for IE based) menu to my webpage. It happens to be a rather long list that can extend out of the screen's height. This is no problem as horizontal scrolling will get you there. The only problem happens when the browser is out of focus. The hover still gets triggered, but the scroll ...

How to create a Loading/Splash Screen in PHP?

How do I create a loading overlay(with loading gif) while php script runs and returns data ...

CSS ID vs Class

What is the basic difference between CSS ID and CSS Class? Someone told me that, ID can be used only once in a page. But I found that it can be used multiple times. like body { background-color: #3399FF; } div#menuPane{ position: absolute; left: 25px; top: 25px; width: 25%; } div.menu { display: block; ...

"Floating" annotations with HTML/CSS/JavaScript/whatever

I have a text document with some annotations, and I would like to make them appear near the text they accompany, on a webpage. That is, I want to convert something like this: The Houdan hen was never drawn into the cult of Sredni Vashtar. Conradin had long ago settled that she was an Anabaptist. He did not pretend to have ...

ASP:Imagemap making the hotspots easily findable

I am developing a application that would benefit from identifying items from an image map. You can create image maps easily on a asp.net site using this code. <asp:imagemap id="ImageMap1" runat="server" imageurl="image.gif"> <asp:circleHotSpot PostbackValue="Area1" radius="10" X="30" Y="30" ALternateText="Area1" HotSpotMode="PostBack...

CSS: fixed to bottom and centered

I need my footer to be fixed to the bottom of the page and to center it. The contents of the footer may change at all time so I can't just center it via margin-left: xxpx; margin-right: xxpx; The problem is that for some reason this doesn't work: #whatever { position: fixed; bottom: 0px; margin-right: auto; margin-left: auto; }...

Superfish Css/Jquery Menu goes under Flash Content in IE7

http://mindfulintegrations.com/signiacapital/index.html It works fine in FF3 and IE8 using SwfObject2 and wmode=transparent, but for the life of me I can not get the menu to dropdown over the flash content in IE7. Any help would be appreciated. I've tried playing around with Z-indexes, and to be honest my understanding of them is somew...

fullscreen layout

Having a world of trouble with a fullscreen layout. Either a table or css based solution would be appreciated. The goal is to expand to the viewing screen, with the "nav" fixed by width and "top" fixed by height, ideally without javascript. The code below works until the "content" fills up. When that happens it needs to scroll. However,...

CSS Position Different in FF and IE

I am trying to position some elements on a page at absolute positions. I used the following test code (I replaced the <> with [] to get through the HTML cleaner): <body> <div style="position=absolute; top=100px; left=100px"> HELLO 100,100</div> <div style="position=absolute; top=200px; left=100px"> HELLO 200,100</div> <div style="...

Son of Suckerfish CSS Menu - Top Level Menu staying active on Sub Menu Hover

I'm after a way to keep a top level menu item on it's hovered or active state when I'm hovering on that menu items sub menu. An example can be found here: http://marketplace.prettypollution.com - Hover over 'News' menu item (BG will be dark) then navigate to the Sub Menu to appears - 'News' item will change back to it's normal state. ...