css

CSS <img> relative positioning vs. background-image + background-position

I'm working on a thumbnail page for an image gallery. Thumbnail previews are done as an <ul> with floating <li> with a fixed, square size. The thumbnails images themselves however are not necessarily square or same size, they have the properties of the large images they represent. To make it look nice I'd like to display the center of ...

browser does not fill the background properly with repeat-x

hi there, in the header menu i am using an image with repeat-x property. it works perfectly in full screen however in low resolution i.e in 1024X768 and 800X600 screen it leaves some margin. it leaves the margin when a horizontal scroll takes place. how do i make sure even if horizontal scroll exist the repeat-x property should cover th...

100% background tile, in 100% hieght divs. problem.

Hi All, I am having an issue with a layout i am trying to develop. I basically have split the view-port into 2 equal width divs with a different background tiled image in each. i have it stretching full screen 100%, but have a problem on scrolling. The background image is cropped to the original height of the view-port..! Here'...

how to load an external css file if javascript is disabled.

how to load an external css file if javascript is disabled. Should work in IE 6 to 9, Firefox Google chrome, Safari I tried <noscript> And keeping <noscript> inside but it's not working in IE 7 ...

How to blend CSS classes for different results

I have a table where the even rows are given the class "even" and the odd rows "odd". But I also want to give the rows classes like "complete" or "problem" that give them other colors, but I still want the hue of the colors to be dark or light depending on if they're even or odd. Examples <table> <tr class="even problem"> <tr c...

Compressing web pages with php, javascript, html, and css in them

I have found utilities that can compress html, javascript, and css files individually. However, lets say I have a file called homepage.php with php at the top of the page, css and javascript in the header, html in the body along with more php code and perhaps some more javascript. Sometimes, the chunks with javascript may also have php i...

Why isn't min-width working for ie6?

Hi there, I am coding exclusive ie6 css, wherein I am facing the problem. The footer does not take the min-width value whereas it accepts the fixed width value. I am using the repeat-x for an image and assigning a min-width value to it. The same thing I did with header div and it works perfectly fine. For example here is my code. Heade...

CSS positioning with IE8 - expressions not supported

Hello, I have the following code: <html> <head> <style type="text/css"> DIV#left { z-index: 100; position:absolute; left:0px; top:0px; width: 100px; height: 100px; background-color: #e7e7e7; } DIV#right { z-index: 100; position:absolute; left:100px; top:0px; width: 100px; height: 100px; background-color: #e20074; } </style> </head> <bo...

Overwrite CSS class selectors without !important

I'm just writing a javascript UI dialog for a web app. The problem is that users can create there own themes for the web app, which may include element css selectors (h1 {...}, div {...} etc.) which overwrite my css formatting for the UI dialog. The dialog is a div element which is formatted over a class selector (id dose not work becaus...

submit button not lining up no matter what with two input boxes in a table.

Hello, This is ordinarily a simple task. I have a simple sign in form that has an email input,password input, and a submit button, all in a horizontal line. After hours and hours of taking styles off, and trying different structures, the button sits a little lower then the boxes. I am thinking it might be because I have absolutely positi...

Laying out "Label - Value" to center without use of tables

So often you will have a number of labels (lets use name, age, colour) and a value for each! If I placed these In a 2 column 3 row table I could make sure that the values (lets use Steve, 19, Red) all start in the same horizantal position. And if I wished by having that column left align, and if i also wanted have the label column righ...

Dynamically set iframe scrollable

Hi, I have to make an iframe element from java script so it isn't scrollable anymore(the javascript function is called from a iframe inside the one that I have to change).Now it works but only on Firefox and Chrome and I must do it on IE also. I have no alternative than to change the scroll bars to the parent iframe and to understand wh...

How do you create a custom css pop-up to open on page load once per visitor per week.

Okay I have the below code, which will allow me to either click the link or hover over the link to show the pop-up. I would like to be able to edit it to make it open on page load. I would also like to be able to have it open only once per visitor per week. I am new to this so any help would be great! Thanks <head> <style type=...

putting spacing between the leftmost and rightmost cells and the table border

Hi I am making a table in HTML and I do not want the borders of the leftmost and right most cells to extend all the way till the table border. For example: | ____ | So as in the above example, while the cells themselves have a contiguous top border this border does not extend all the way till the outer table border. It would be great...

jQuery adding to css element

I have the id of my element. I need to add a given value (determined by a variable in the javascript) to one of the element's css attributes. I.e. given an element id=my_id how do I add x to that element's margin-top attribute? ...

Deciphering HEX RGBA for MS-filters in CSS

I'm writing styles for a page where I'd like to use rgba colors on the background of some list items. I've used the CSS background property along with rgba(146,138,118,.4) to define my transparent background color. Now I'm trying to cover my bases with IE support by using the technique of an ms-filter as described in this article. (see ...

Generate "table" with <div>

Hello, I'd like generate the representation below by <div>. The constraints : the full size = 100% the first + second column = 50%, the 3rd + 4th column = 50% the first column is smaller than the second, the second take "the rest of the place", same for column 3 and 4 :) the 3rd lines, combines 2 cells the last line combine 4 cells do...

css/javascript visibility visable/hidden is very slow on Blackberry

document.getElementById("spinner2").style.visibility="visible" Visibility visable/hidden is very slow on Blackberry (OS4.6). screen seems to be redrawing which makes it unusable in Ajax application. The goal is to put visible feeback to user while ajax request completes. Anyone suggest alternative? ...

Chrome extension's CSS is not loaded

I'm developing a "content script" Chrome extension. I'm trying to use a CSS files to style some existing elements on a page and to style elements that I create dynamically with JavaScript. I've specified my CSS file in the manifest.json file: { ... "content_scripts": [ { "matches": [ ... ], "js":...

Overlay not working correctly

hi, i have a overlay which works great except if under it is a embedded video for example. What happens is that the video pops up over the overlay but i cant click on it or do anything with it. I did some research and i guess if there are any flash elements or multimedia elements in the host page they will pop through the overlay. Is th...