css

Padding between checkbox and label

For the CSS gurus out there, this markup outputs a checkbox with a label Value1 to its right, but Value1 is too close to the checkbox. <dd id="rr-element"> <label for="rr-1"> <input type="checkbox" value="1" id="rr-1" name="rr[]"> Value 1 </label> </dd> So I'm trying to create a padding-right effect to the right of t...

Right-to-left when using webkit-column

Is there a way to get right-to-left scrolling/content when using -webkit-column? ...

Having strange issues with inline inputs in IE

I've been building a form all day and doing most of my dev in webkit browsers because of the good developer tools. I went to test in IE and I'm having some really strange results with regards to having 3 columns of divs in a row. I can't seem to find a fix. Has anybody seen this issue before (see link below)? http://65.61.167.68/form/ ...

How to fade in a div on hover?

I want to hover on an image, and have a div with text in it to fade in. Simple. Sidenote: I want it to be style-able by CSS. (Kind of a given.) Also, I tried using some examples but I am in a hurry so please and thankyou. ...

Slide down div on hover

I have a status bar at the top of a web page, and on hover OF A CERTAIN ICON ON THE STATUS BAR, I need a div to slide down from the icon to reveal a text box with a description. ...

Need help with styling a table: how to add margin to one cell ?

Consider this code: HTML: <table> <tr> <td>Option 1</td> <td><input type='checkbox' id='option1' /></td> </tr> <tr> <td>Option 2</td> <td><input type='checkbox' id='option2' /></td> </tr> <tr> <td>Option 3</td> <td><input type='checkbox' id='option3' /></td> </tr> ...

Navigation will not align right

I spent hours trying to get this right, but it just doesn't work for me.... As you can see in the image: The navigation just isn't right. Maybe you can help me? The site is http://elektrikhost.com.... I used the Web dev extension fore firefox for the guide lines... I don't know why it just won't work for me.... Heres the CSS: nav...

jQuery UI drag/drop sorting comparision using float:left vs display:inline-block

I have two examples here, only difference between these two example are one uses display:inline-block and other one uses float:left, li.doc_item{display:inline-block;} vs li.doc_item{float:left;} My problem is display:inline-block sorting is not as fast or responsive as float:left. I want to use display:inline-block because thumbnail...

How to easily change a font-sizing from px to em for a big, existing site?

How to easily change a font-sizing from px to em for a big, existing site? Any tips to do this quickly? ...

HTML: How to style each table cell in a column via CSS?

I have an ordinary HTML table: <table> <tr> <td class="first-column-style">FAT</td> <td>...</td> </tr> <tr> <td class="first-column-style">FAT</td> <td>...</td> </tr> </table> I want to apply CSS style to every table cell (td) in a particular column. Is it possible to do that without applying the class/style ...

Changing DIV color in CSS depending on database results?

I want to change the background color of the DIV depending on some true/false values in the database I'm running. Can this be done in CSS or am I forced to use inline CSS when it comes to this? One solution I came up with is that I had created several (4-5) classes to be called but the classes all had the same CSS rules except for the c...

IE css problem or jquery ui problem? weird cursor while showing custom nested rows.

I hope you can help me on this one. Here's a simplified version of my row object. Nothing special: a button, a title, and a content that slides down when the button is pressed. var row = function(title) { this.clear = $('<div/>').css({clear: 'both'}); this.$icon = $('<div/>').addClass('ui-icon ui-icon-carat-1-s'); this.$but...

Programmatic access to inline Styles where name is separated with dashes

Here is shown how to use styles in CamelCase, but how to use styles with a dash in its name? Valid Java method name can't have dashes in it (at least eclipse shows syntax error). Style defined in template: .menu-inactive{ background-color: grey; } ...

jQuery.offset is off, in some cases

I have a strange jQuery.offset() problem. I'm building a website which makes use of layers, built with div's with a z-index. The links on the lower levels are not selectable, because a layer with a higher z-index is positioned on top. They are visible, because the upper layer is mostly transparent and empty. My solution is to iterate ...

How to cut text to fit a box dynamically?

I know about overflow, and I read the cut off text before read more here on the website. The problem with the: http://stackoverflow.com/questions/2725209/cut-off-text-before-read-more for me is that it will put "..." after every line — I have a block of text I would like to truncate. How do I do that? Is overflow my only solution? What ...

Problem with form validation using jquery validate plugin

I have the following code to perform validation of SubmitForm shown below .when i click on AddressListing div tag and call the validation function ,it performs validation only for the businessname field but not for other remaining feilds.Only businessname name field will be highlighted in red color,but not other feilds. I am using the f...

Dynamic PDF style problem in php?

when i create dynamic pdf (HTML to PDF) inline css not working like text padding or text margin. ...

Simple CSS z-index example not working

I'm trying to make a simple html with 2 images one above other on z-index: <html> <head> <title>test</title> <style type="text/css"> back { position: absolute; left: 0px; top:0px; z-index:0; } front { ...

CSS Semi-fixed Element - follow-up question

This is a follow-on question from this thread: http://stackoverflow.com/questions/2460364/css-semi-fixed-element I implemented kelso's solution and it works perfectly on Firefox and Chrome. However, IE 8 is not playing ball. I have rolled the code out so that you can see the problem I am having on a live website: Gran Via hotels IE i...

add javascripts and css files dynamicly to html using javascript

Hi. I am building a javascript widget and i need to add my widget css and js files dynamicly to the client page. I am doing this for now: var css = document.createElement('link'); css.setAttribute('rel', 'stylesheet'); css.setAttribute('href', 'css path'); document.getElementById('test').appendChild(css); alert(document...