css

change table row style on hover

Hi, I created a table without borders styling and I want it to underline a row on hover. However, I am getting pretty odd behaviour. When I move mouse over from upside down, nothing happens. In opposite direction, all touched rows get underlined and stay that way until I move mouse over in some other direction. I am pretty confused by th...

Generate random element position and prevent overlapping in JavaScript

I have a holder div on the page where I want to load small images in on random position as a collage with 10px padding on each. How can I make sure that images never overlap each other or holder div? Is there a plugin or function that I could use? My code so far: <script src="jquery-1.3.2.min.js" type="text/javascript"></script> <sc...

Javascript to modify all absolutely positioned elements

Hi Effectively what I need to do in JS is move all absolutely positioned elements down by x pixels. Do I need to loop through every element and try to figure out if it's positioned absolutely? Or is there a better way? Thanks, Mala Update: specific: I am using a bookmarklet to inject JS onto any page - thus I cannot change the markup ...

CSS problem, my div tag is not resizing when i put text in it

Hi, I have a simple css layout, with a container and some backgrounds, and a three column design. Fixed width. <body> <form id="form1" runat="server"> <div id="BGContainer"> <div id="PageContainer"> </div> <div id="Content"> <div id="MainContent"> <asp:ContentPlaceHolder ID="Ma...

Title appears right aligned!

http://www.perfectclaims.com/ppiclaimsnew/ I dont understand why the first part of the title is right aligned? any ideas? Thanks ...

text with the same font size looks not the same size on different pages

on both pages,the font-size is 10pt, but on one page the font size looks obviously bigger than on the other page, what can be the reason for this? ...

ie7 z-index problem

Hi, I've isolated a little test case of IE7's z-index bug, but don't know how to fix it. I have been playing with z-index all day long. What is wrong with z-index in IE7? ...

Forms, Post and submit buttons

I feel a little silly asking this but I wanted everyones opinion on it. I want to submit a page, target itself, on the press of a button but carrying one piece of data with it. Example: Edit | Delete On the click on edit, I want the page to reload with $_POST['example'] === "edit" or something. I don't want to use $_GET and I don't w...

Arranging elements on the screen and saving their positions

Hi, I want to build a tool (with HTML5, JS and CSS3), which helps customers to arrange elements on a website mockup (e.g. text blocks and pictures). I want to save the position of these elements in order to reconstruct the whole mockup website later. Maybe a grid system would be the best? I would be happy to get some ideas on approa...

css looking different in firefox

I have been working all night and yesterday on this header section in css, the link is below of how far I am so far but I am having trouble, can any css experts (or anyone) help? http://friendproject.isgreat.org/header/ Looks exactly how I want it in google chrome, possible in IE beause it is similar to chrome Problem 1) My problem is ...

JQuery - CSS ninja help wanted

I'm using the JQuery Slider Control IE 6 looks FUBAR. Screenshot (how it should look) img24.imageshack.us/img24/9786/safarij.png Screenshot (IE6) img99.imageshack.us/img99/3418/ie6o.png What CSS can I use for IE6 to make it look like Firefox/Chrome/Safari? Any CSS ninja magic would be greatly appreciated. ...

How to center image of variable width in DIV on page?

I have an image of variable width that I'd like to center in a container div, which will be centered on the page. If I set a width on the div and give it a margin: 0 auto, it will center, but the problem is that the image inside of the div is of variable width, so I can't set a width on the container div. Any suggestions? Clarificatio...

Changing styles on navigation links - including next and prev buttons

Hi I'm currently working on a website for a Danish company. The content is all in one page and I've included some jQuery-scrolling and stuff. Works nice! For the menu I'm asked to programme the elements so the active element is bold. That I've done too. The problem comes here: The client wants a home button and a next and previous but...

Is there a way to set the CSS information for a particular instance of YUI DataTable?

The place were I wnat to use the YUI DataTable is in a wiki that allows HTML and javascript. I have created the custom table, put it in a div and gave it an ID and it works really well except that it usees the CSS from the container wiki page and visually it is not presentable. I would like to be able to set the CSS information for this ...

CSS:hover and pseudo-classes in general

Ref: http://stackoverflow.com/questions/1287444/forms-post-and-submit-buttons Following on from my last question, I've attempted to style my input tags. I tried .as_link { background: transparent; border: none; cursor: pointer; padding: 0px; } .as_link:link { background: transparent; border: none; cursor: p...

Android Dropdown (Select) CSS

I'm currently writing some stylesheets for mobile browsers and have come across a strange issue in the Android browser. When changing the font-size CSS attribute of a text box the box gets bigger to accomodate the larger text. Doing this on a select box however does not change the size of the select box, but the text still gets larger (a...

Centering a ul with floats inside a div..

I'm trying to center this bottom nav on a test site: http://heroicdreams.com/kktest/ The ul li uses float:left; which is what I think is making it stay stuck to the left. I'm trying to figure out how to get it to be centered. To get the links displayed horizontally I needed to float them left, but now I can't get the whole nav to be cen...

CSS image sprites

Is the only benefit of using css image sprites that there is less http requests? Or is there other benefits? Also is there an easy way of detiming which area of a sprite to show? ...

Does IE have anything similar to what -moz-border-radius does in firefox/chrome?

Does IE have anything similar to what -moz-border-radius does in firefox/chrome? Also is the -moz-border-radius supported by safari? ...

Absolute positioning an element causes element to display inline in IE

I have a list that I'd like the main elements to align vertically and the sub elements of each to drop down underneath the main element. I want to keep the position: absolute on the subNav class because the width of this nav will vary from each so I can't set a width. This works in Firefox, but in IE 7 the absolute causes the subnav to d...