css

Hiding the HTML5 number input spin box

Is there a consistent way across browsers to hide the new spin boxes that some browsers (such as Chrome) render for HTML input of type number? I am looking for a CSS or javascript method to prevent the up/down arrows from appearing. ...

how do i get images to display in a rows like this using php and css?

i wanted to know how can i display the images like the on in the picture: i know that i have to retrive the images using a while loop, but then displaying them like this is the difficult bit, thanks!! :)) ...

jQuery validate change color of element background

jQuery.validate doesn't seem to change the background color of the invalid element by default. Is it also possible to change the background color of a select element? Most of my elements are input type="text", but I need an indicator for the select form elements. I am not using the default generated messages, as they don't fit my layout....

jquery .hover .animation use to switch between a stack of z-index arranged images.

Part A I have the following: <div class="graphic fadehover" class="last"> <img src="graphic5test image" alt="" class="a" /> <img src="graphic5-2test image" alt="" class="b" /> </div> with attached css .fadehover {display: block; height: 162px; margin: 70px 45px 0 0; position:relative; width: 292px; z-index: 1...

How do I determine if something has been clicked in jQuery on the first load?

I am trying to set a javascript variable to be one of a few options. If one of a few specific link shas not been clicked (i.e. the first page load), then the variable should be set to 0 or 1 (the default value). If it has been clicked, then I want it to get a number associated with that link. So say the html looks like this: <a href=...

CSS background url not working in firefox, but works in IE?

I've got a shadow background for my site layout showing up fine in IE, but firefox only shows the shadow (an image) if I use "height:100px;", or if I actually type some text in. I'm using the shadow img with a div for the layout. How can I make this work in firefox? css: .bg_shadow { margin-left:auto; margin-right:auto; b...

Concat strings in CssResource to create a url

I have some CSS in a ClientBundle that uses a background url. Since I load the javascript (/MyModule/MyModule.nocache.js) from /index.html, my relative urls in CSS are from root. This means .myBackground { background: url("images/background.png"); } will try to load from /images/background.png. This seems like a perfect case for runti...

Major IE8 positioning issues part 2

Hello, I have a social network for the cystic fibrosis community. There is a section (s) where you can leave comments, and reply to the comments. This is generated with html,css,and jquery and works amazingly on FF,Safari, and Chrome, as you can guess, it has major quirks on IE8. It works as it should when the comment is small, or ther...

How can I register a css page from an ascx control?

How can I register a css code block inside an ascx control? Can I just have <head id="head" runat="server"> <style type="text/css"> .customClass { background-color: Lime; } </style> </head> Anywhere in ascx page? I doesn't seem to work? ...

jQuery - How to get position of element that has a class

Hi, I have an slider that ads an class (.current-item) to each tab that is on, and removes when it`s off. I want to use LavaLamp for the menu efect and I need to get the position of the each element that has class current-item. I used: var my = $("li.current-item"); var myposition = my.position(); function setCurr(el) { $bac...

CSS drop down menu - stack order not right?

Our test server is here: http://208.43.52.30/event/list See on the top right the box that says "Organizers" .. For some reason I can't get the drop down to come on the top layer ... I've tried changing positioning, I've tried changing z-index, but no luck .. Any ideas? ...

Table and Body with two separate background colors.

Hey all, simple question I'm sure, but I would like to have the body of a page be one color and to have the table in the center a separate color. I tried specifying body color and table color, but body always overrides it. I'm attempting this in css, and I have a feeling I need to use a "not" excluder to make this happen? Such as specify...

Positioning Background Images and Firefox

Hi there, I've been working on coding a personal website from scratch in my free time, and have gotten the layout mostly looking like I wanted. But for the life of me, I cannot figure out why Firefox does not align the 'dropdown menu items' ('about', 'blog', etc.) BELOW the background image into the dark grey area like it does in Safari...

how to use css to style a descendant (not a direct child) of an element?

Hi, I am trying to override the style of a descendant(not the direct child) of an element using css. Say, I am working on: <table id="z_d__h3-real" class="z-hbox"> <tbody> <tr valign="top"> ----- </tr> </tbody> </table> I want to override the style to set the valign of the tr element to "center". I tried doing: table....

CSS: How to make this topheader?

Hello I am all new to this Saw this www.workatplay.com/ website, and got fascinated on how simple and nice stuff can look. I wish to make exactly like the header above. With the header I am reffering to this: http://img227.imageshack.us/img227/619/header1o.png And how the links + the "[workatplay.com]" logo is set up at the right. I...

how to manage large client side only web apps

I am building a project which uses jQuery UI for the client side. My goal is to have my web-app never do a postback and do everything client side. While developing though I found almost all my code goes into 1 .js file and 1 .html file where I have a lot of div's which I show and hide when appropriate. Is there a better way to organize...

How to force an <img> to take up width, even if the image is not loaded.

I'm loading a bunch of img's, and I'd like them to take up space on the document even if they are not loaded, or have not completed loading yet. I tried specifying width and height (both as attributes themselves, and within a style attribute), and find it frustrating that the images will not take up space if they don't load. Surely, th...

Jquery - Live position of block!

I have an element that moves on hover up or down. I need to know the position on that block and see in an text <script type="text/javascript"> var who = $(".back"); var pozitie = who.position(); $("p.pozitie").text("TOP:" + pozitie.top); </script> This script gives me only the start position. I need the position all the time. Can some...

How can I align numeric input right and text input left?

If I have two <input type="text" ... and I know that one should aceept text and the other a numeric value (and will check that in PHP when validating the form), can I align the contents of the text box left & the contents of the numeric box right using CSS? ...

css div issue in ff and ie

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt; <script type="text...