css

How to use jQuery to read/write the values of an elements externally defined css class?

I have a div in an html file defined as follows: <div id="rangeTabAll"></div> In an externally defined style sheet I define the following style. #rangeTabAll{ top:45px; left:124px; width:186px; height:114px; display:none; background:#ffffff url(../images/rangetab0.jpg) no-repeat; } How do i read/write the ba...

HTML/CSS: Making two floating divs the same height

Hi I have a little peculiar problem that I currently solve using a table, see below. Basically, I want to have two divs take up 100% of the available width, but only take up as much vertical space as needed (which isn't really that obvious from the picture). The two should at all times have the exact same height with a little line bet...

This layout can be done with CSS?

Is it possible to do the following layout with CSS but not using absolute/relative positioning? We tried to solve this riddle for several days but we couldn't fit the box 10. Edit : Please also provide css + html files of your solution. So we can discuss solutions. ...

Help refactoring CSS

Okey, guys I have following code: #adminmenu li.hideshow-news, li.hideshow-users, li.hideshow-pages, li.hideshow-gallery, li.hideshow-references, li.hideshow-settings { display: none; font-size: 11px; background: #fff; padding: 3px; } I want to achieve (as I tried here) using only one line for diffrent classes on in div "adminmenu"....

How to design a CSS for a centered floating confirm dialog?

Hi there, I'm looking for a way to display a confirm dialog that's always centered on the page, and floating over the page. Tried that, but it's not 'always centered' at all, since the position is fixed: .Popup { text-align:center; position: absolute; bottom: 10%; left: 27%; z-index:50; width: 400px; backgr...

How to design a CSS for floating confirm dialog centered on the visible portion of a page?

Hi, I already asked a more general question, with a great answer. However, I want a more tricky centered floating popup: If my page is 1000px high, and I'm viewing only the upper portion of it, I do not wish the popup to pop at 500px, but rather at the middle of the visible portion of the screen. Is there a way to access the visible ...

How to stop all CSS overrides on a container DIV?

I have a container div which i add to external websites using a bookmarklet to do some functions, the problem i face that this div contains some elements and each element has its inline style, but when i put in the external site, sometimes it overrides styles from the site CSS. There is a way to stop any overrides on this div? ...

Hack padding-right for IE 7

I want to put padding-right:10px to my style for only IE , but I don't want other browsers to render this padding. Any solution to define padding only for IE, but protected from Firefox, chrome, and others? ...

Scrolling HTML 5 Canvas in IE

I have got a canvas tag in a page wrapped within a div. In order to show the canvas in IE, I'm using the excanvas script from Google. I'd like to be able to scroll the contents of the canvas, since it's supposed to be wider and taller than the viewport (the div). I have defined the following styles: The div overflow is scroll or aut...

Css button sliding doors

I'm trying to style a button with the css 'sliding doors' technique, but it isn't working properly. I've only got access to firefox 3 at the moment so this issue may not occur in other browsers but I would like to solve it for firefox as well. Here's a picture of what the problem is: As you can see the second side is lower than the f...

div alignment in css on Chrome, FF and IE 7 on Windows XP

Hello everyone, i have problems with the alignment of divs. My layout consists of one div view_central which contains three other divs namely view_central_top, view_central_left and view_central_right. Chrome and FF render the wanted result: a top div with a bannner, the navigaiton to the left and the content to the right. IE 7 offse...

How to set CSS for disabled checkboxes?

I'd like change the CSS for disabled checkboxes in a grid (they are too hard to see, per the users). What is a simple way to do this? My preference in technologies used (in descending order): CSS JavaScript jQuery Other ...

Advice on GUI layout for security product

We've developed a security product which identifies certain types of unauthorized traffic on a network. The interface for displaying the messages is a Java Servlet generated page. At this point, the page is a glorified console log. There is a big text box with lines of text added as warnings and messages are generated. A couple of cool...

Move page specific jscript and css to another file with a macro in visual studio

I'd like to create a macro which moves all my page specific style and javascript to named files. For example: default.aspx contains <html> <head> <title>Weeee</title> <link type="text/css" rel="stylesheet" href="../content/style.css"/> <style type="text/css"> /*page specific style*/ </style> <script type="text/javascript" src="../con...

How to reach CSS zen ?

CSS looks like a set of tricks to me. Whenever I read about some css technique, it looks much more like tricks that techniques. When I write CSS, I often need to adapt the html structure and I feel bad. Did some of you had some enlightenment and enjoy CSS zen ? How did you reach CSS zen ? ...

Center block element in element

I'm trying to center a block element (the WordPress caption box, including the image) but it won't work. I've tried: .imagecenter { margin-left: auto; margin-right: auto; display: block; } But it just won't work. I've also tried margin-left: auto; margin-right: auto; but that won't work either. Is there anything I'm doing wro...

Strange gap between <div> elements in IE, not in FF or Opera

Hi, I know this kind of question must get asked all the time but I haven't found a solution for my problem yet. Using FF, Opera and the IE that is on Windows 7 (can't remember what it is), the page looks exactly as it should, but using IE7 on Windows Vista, there is a gap between my navigation bar and the rest of the page which frankly...

Are these DIVs really necessary?

Hey there I sometimes find myself creating a div which serves no other purpose than to hold another element. For example when creating a menu, I would create a div and assign it a background colour, position etc. Then within it I would create an unordered list. I could surely assign all the properties I assigned to the DIV to the UL ...

Dojo TabContainer with styling in Internet Explorer

The following works in firefox: top:0px;margin-top:60px;bottom:0px;width:100%"> height:100%"> {% for row in tabContent %} top:0px;margin-top:60px;bottom:0px;width:100%"> ...

What is a good jQuery lightbox clone?

It must be: easily skinnable with css be able to handle forms and not just images be well documented Any suggestions welcome Many thanks ...