css

Share Content between Web and Mobile Website

I am creating a mobile version of my website. It is nothing fancy, just a few pages. I would like to be able to share the content in both form, without having to update it in two places. Is the easiest way to do this with CSS? Or can I create some sort of XML or text file and read it in both sites? Here is what I ended up using: <!--[i...

Image appears in FF, but not in IE. Very weird indeed.

Check the following site out, top logo image shows up in FF, but not IE8. Any ideas? http://blog1.catdynamics.com/ ...

CSS Content Not increasing with Content

Hi everyone! I have a CSS Question I want this div to automatically expand vertically as more and more content fills it. I thought that omitting it's height setting in the style would do so but it hasn't seemed to fix it. My CSS .box{ -moz-border-radius: 15px 15px 15px 15px; background-color:#433B39; background-image:none; color:white;...

CSS Block for Employee Entry Form

Hello I am creating a simple form to enter employee information. An employee has the following characteristics: First Name Last Name Age SSN Gender Race etc... There are about 20 properties I want to display a label and textbox for (some have dropdowns). I don't want to use a table because I've read that using <div> elements and CSS ...

css expandable menu working fine in firefox, but not ie...sub li's not showing up properly...

I've got an expandable css menu that is acting a bit weird in ie, but works fine in firefox. Anyone who can help me is appreciated. Heres the problem. When I click the li it expands to the sub li fine, however, if I keep the mouse directly over the li I just clicked on, the text in the sub li's don't show. See this picture...notice w...

How to calc reversed CSS colors

I have a css file with mono gray schema and i need to reverse colors to any color. For example gray color schema to green color schema etc.Is there any tools or method ? What is relation between parallel colors and how to calc parallel color. ...

Add padding to jQuery UI Slider

Is there an easy way to add padding to the slider-bar of a jQuery UI Slider? I'ld like to be able to have the slider-handle not reach the ends of the bar. So if this is the regular left end: no padding \/ []------------------ I would like it to have padding on the left (and right) end: padding of 10px for instance \/ --[]------------...

Div with scrollbar inside div with position:fixed

I have a div with position:fixed that is my container div for some menus. I've set it to top:0px, bottom:0px to always fill the viewport. Inside that div I want to have 2 other divs, the lower one of which contains lots of lines and has overflow:auto. I would expect that it would be contained within the container div, but if there are to...

vertically scrollable image gallery

I was going through this tutorial about designing a vertically scrollable image gallery. http://flowplayer.org/tools/demos/scrollable/vertical.html Now can anyone explain me how to change these setting such that i can have more than 3 rows in a single page. Or can anyone show me a tutorial where such a vertical image gallery as been m...

loading css style background-image url dynamically in c sharp

Look this what i have string imagePath = "http://" & ConfigurationManager.AppSettings("DomainName") & "/images/" htmlstring = <tr style='border-width: 0px; height: 36px; background-image: url(' " & imagePath & " cart_top_centbg.jpg');'> here imagePath is set in web.config file but this is not geting loaded in that css style background...

@font-face src: local - How to use the local font if the user already have it?

What is the right way to use @font-face so that the browser will not download the font if the user already have it? I am using @font-face to define DejaVu, which is already installed on my system (linux). Firefox is not downloading the font, but Chromium is downloading it every time! My CSS code, based on font squirrel and that questio...

Tiny MCE and @font-face

Hi, I need to use an exotic font with tiny_mce, I edited the theme_advanced_fonts property and I am using the content_css property to link an stylesheets that defines my font family. I can select the font from the menu but text is not displayed with that, so I have to edit the source html and the style property for the text to be render...

Enlarge textarea onClick

Hi, Can anyone please let me how to Enlarge textarea while using OnClick function or how to increase the rows on onClick? regards balkar ...

Trying to get vertical text to bottom align

The layout I'm trying to achieve is shown in this image: The HTML below is one of many attempts which haven't worked. The project this is for is targeting HTML5 in the latest browsers only, so there is no need for it to work in anything except the latest Chrome, Safari, Firefox and (with a following wind) IE9 beta. <!DOCTYPE html> <h...

CSS background image for asp button control

Hi! I've been stuck on this for 3 days now. I have two pages that basically share some code for a search feature on my website, here's my code The CSS #btnSearch { display: block; color: #ffffff; width: 100px; height: 27px; border: 0; padding: 0; background: transparent url("Images/btnSearch2.png"); } Whe...

Can't get text to center?

Hi, I have a div wrapped around a couple span's and using JS to make the span's fade in and out (for testimonials). Everything works, except I can't get the span text to center within the div. Here's the relevant code: HTML - <div class="slideshow"> <span style="font-size:12px; color:#333333; font-family:Lucida Grande,Lucida Sans ...

How to create an inclined (not levelled) slideshow?

Hi, is there a way to create an image slideshow that is rotated by say 5° ? I'd prefer a non-flash solution. Thank you! ...

How to use z-index within an <a> tag?

I have the following html which I want it to be viewed exactly opposite to what it looks like now, but I've tried a lot and nothing goes well, to be specific I want the A link to be on the top of the links, and the B one right under it, and the C one right under B, and so on... I've tried to set the z-index to them but it hasn't worked. ...

jquery formatting only occurs when document ready, so when web page first loads the user is presented with an ugly page

This is only very briefly, while the loading of elements and jsp includes occurs. However it is rather annoying. Any tips to remove this ? To be more specific what is the css equivalent of hide() and show(). ...

how to write a desktop application which uses HTML and CSS for user interface and python/perl/c++/java for the processing?

different languages have different GUI toolkits but It looks very difficult to achieve attractive user interfaces as good as we can using HTML and css with less effort. I dont my application in javascript as I doubt if it has all the required libraries and i want to do it in python. How do I use rendering engines like gecko,webkit etc ...