css

z-index maximum value

Possible Duplicate: Mininum and Maximum value of Z-INDEX What is the maximum value I can use for z-index? Does it depend on the browser? ...

css - how do I reset p's and div's style attributes?

Hello, I have a dynamic website with html editors for creating article content, however for some reason the p/div tags generated by the html editor are screwy on the front pages. I'm assuming this is because of css declarations from my overall website. Here is a quick example: <div class="custom_html_block"> <div align="top"> ...

html - controlling how many options show in a select element

So I have a drop down (select) element. The problem is that if there is a long list in it, then it "drops" upwards instead of downwards. Is there a way to say that it should scroll rather than show all of them at once? I know there's "size" but that's how many are visible at once (I only want one visible, like normal) Or is the reason...

Question about nested CSS?

I have a box center, and I want to color that box differently depend on the page. I try this #center { margin-top: 2px; padding: 10px 20px; /* CC padding */ width: 100%; height: 800px; color: black; font-size: 11px; } #backgroundRed{ background-color: red; } #container { padding-left: 200px; ...

How to divide a large text into multiple chunks, all with the same max-height?

CSS3's column-module allows you to divide your text into a multiple columns. Either by 1) specifying the column-height property (all columns will have the same author-defined height, the column count is dynamic) or, 2) specifying the column-count property (all columns have the same computer-generated height, the number of columns is ...

Connect with Facebook buttons - how does the pop-up window work?

Does anyone know how facebook connect buttons generate the pop-up window that you use to sign in? I would think that there's a code like this.. <a href="#" onClick="MyWindow=window.open('http://www.yahoo.com','MyWindow','toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=600,height=300'); retu...

Mysterious and weird lines after using uni-form

I'm using django-uni-form to display forms. I've included all the css and javascript (notably jquery) in the page. But now I get some weird looking lines. The image below show how it looks: http://i243.photobucket.com/albums/ff176/cwalkrox/uni-form1.jpg You can notice that for username and email address, the lines are aligned with the ...

divs and background images

so here is the problem i'm trying to solve, i want to use a background image that is 500px wide for my divs that has a drop shadow on the right edge however i want the text to stop and wrap after 475px and i still want the entire image to show up to include the dropshadow. is there anyway to accomplish this? html code: <!DOCTYPE html P...

CSS background image rendering differently on iPhone

We have a page design that works great in every PC browser that I have tried, but goes strange when viewed with an iPhone or iPod Touch. The problem is something to do with a centred background image thats very tall: #content_container { background-image:url('content-background.jpg'); background-position:top center; background-repeat:...

Best CSS buttons that are cross browser, degrade gracefully, and work on input or link

I have seen a lot of good attempts at CSS buttons (for example http://ubuwaits.github.com/css3-buttons/ ) But I haven't seen one emerge yet that is safe to use in production and meets all the following requirements: Looks good on all modern browsers Degrades gracefully on older browsers down to at least IE7 (bonus if IE6) - don't car...

Opening HTML pop-up windows

I'm trying to figure out the best and simplest way of opening HTML pop-up windows. UPDATE: This is not intended to spam. By pop-up I mean a new window without the toolbars. I need it for something similar to the facebook connect API. I'm currently using a js <script type="text/javascript"> function popUp(URL) { id = "hello"; eval("pag...

rails caching problem with css

Hi, I have two different css files... style.css and style_main.css both are used separately in different layouts for the same application. In development mode everything works fine, but when in production mode, caching happens and both css files are loaded as all.css?xxxxxxx but unfortunately all.css is made from style.css and does not...

Website Help - Creating a better ChatRoulette

I know html and css, and a little mysql and php. I want to make a site similar to chatroulette. What languages and technologies do you recommend I learn and use? And could you please describe the best way to faciliate the video chat aspect of the site? ...

:active pseudo-class doesn't work in mobile safari

In Webkit on iPhone/iPad/iPod, specifying styling for an :active pseudo-class for an <a> tag doesn't trigger when you tap on the element. How can I get this to trigger? Example code: <style> a:active { background-color: red; } </style> <!-- snip --> <a href="#">Click me</a> ...

My text loses its 'bold' when I change its font-size property...

I have some text on my website that I would like to make 'bold', and its font-size to be 'x-small'. But whenever I apply the font-size, the text loses its bold. When I remove the font-size, and the text goes back to default, it's bold again. What's going on here? <span style="font-size:x-small; font-weight:bold;">TESTING</span ...

Storing dimensions in xml file in Android

Hi, I am trying to consistently use the same dimension in all the views in my android app (e.g., a left margin of 20dp). If I were using HTML, I would simply use a CSS file, but I am at a loss of how to do this on Android. Is there a way I can store this value in a xml file inside res/values and then use it in layouts? e.g., I thought...

toggle div fills up remaining space in IE but not google chrome or firefox

I use the toggle function for jQuery to toggle 4 blocks of content. Screencast of how it works properly in Google Chrome: http://screenr.com/w8l Screencast of how it does not work, in IE 7: http://screenr.com/I8l See page for yourself: http://www.herkimer.edu/impact For each header (h2) you click on, it starts the section on a new li...

Display email like major providers (Gmail, Yahoo)

I want to display email in a section of a page with other data (CSS layout). When the emails are sent to the browser (jQuery Ajax), one of the emails has a CSS style that affects the existing pages CSS. I rather not use an iframe to contain the emails. How do providers such as Gmail and Yahoo display emails with HTML and CSS without t...

css is getting overridden by .js inserted styles (Alloy UI)

I have a situation where the .css in my head tag is getting overridden by css that's being inserted dynamically into the head by a javascript library. The .js library automatically appends the new .css link to the end of the head tag so it is always put on top of my styles. ...

Decrease the vertical height between text and horizontal rule

I need to show a text with horizontal rule almost touching the text. that is the vertical height between the text and hr should be very less. This should be displayable in mobile safari browser. http://pastie.org/1206301 ...