css

HTML5 Video: Retain aspect ratio when resizing

I have a video element set to 100% width in a container div. That div has a max-width of 800px and min-width of 400px. When resizing the browser I need the video element to resize while retaining its original aspect ratio. Currently it resizes in width but remains its original height, adding letterbox bars above and below to make up for ...

php class to inline css styles?

Hi, I was over at MailChimp's css inliner http://www.mailchimp.com/labs/inlinecss.php and I was wondering if there are any classes out there that can do this, I'd love to have it in my email code instead of going all the way over to MailChimp. Basically I'm looking for the code, behind the page or something very similar. Cheers. ...

Float a DIV centered over another DIV

I'm trying to float a div over another one but in the center (width). EDIT: I want the container div to be over the top div and centered. Current CSS: body { background-color: #FFF; margin: auto; } #top { background-color: #F2F2F2; border-bottom: 1px solid #CCC; height: 150px; position: relative; } #containe...

element inside of html

This my page here, the header and left nav collapse. the problem when the header is collapsed the left one wont work at all. If the left is collapsed. The header always will. Any suggestions. <!DOCTYPE HTML> <html> <head> <title>Myrexis CTMS &raquo; Login</title> <script type="text/javascript" src...

SASS to CSS converting utility

Please advise me some command line utility or may be a function/method in JavaScript, Python or some other language to quickly convert SASS to CSS. I am going to use it with my text editor and want to work with SASS, then quickly convert this file to CSS. Thanks. ...

Applying css to a table contained in an iframe

I will be serving 3rd party content to other sites through an iframe. The content will be presented in a table. Is there any way to use internal style sheets where the defintions are defined within the iframe?? I have read that internal style sheets should only be defined in the head section. External css is not an option. Here is a...

Weird mouseover behavior in Chrome?

We have a heading element styled as: <div class="sidebarHeadingFont">Operation</div> .sidebarHeadingFont {font-family: Arial, Helvetica, sans serif; font-size:10pt; font-weight:bold; color: #003366; } In Chrome when you put your mouse over this element the font size increases (making the width of the element bigger) and the color cha...

How to get the HTML text to just stay in one place

I am making a site in HTML, and I am putting a heading on top of an object. When I shrink the window enough, the object and the text interfere Is there any way I can have the text just stay in one spot without it wrapping to the browser window if there is no space left in the browser? I have tried using fixed as a position property in ...

Techniques for Modular CSS

I want to start using modular CSS, but I'm having trouble figuring out the best way to implement it. I was thinking I could just use a bridging technique, where I have one in my HTML and then @import statements for each module. While I like the simplicity of that method, I'm concerned about the negative effects it has on performance, si...

Google Chrome slight mis rendering of button sprite

I cannot seem to get the butotn on the pop up of this page just right in Google Chrome: http://www.ryanpays.com/expedia/ There is an overlap which is not present when testing in other browsers. It's really bugging me :( ...

&#8302; trouble with IE6+UTF-8

IE has trouble with #&8302;(Actual character references) be interpreted as white space with multi byte OK:http://tmp.zeg.la/shift_jis.html OK:http://tmp.zeg.la/euc-jp.html NOT OK:http://tmp.zeg.la/utf-8.html Do you have any solution of it? ...

outline img hover not working in ie

Hi All , div img:hover { outline:2px solid #4d3326; } The above code is not working in ie , its working fine in firefox and chrome , may i know what is the problem or any alternative Thanks ...

Attach a script to a DIV While performing an AJAX request

I have this script <div id="div2"> <div class="bar1"></div> <div class="bar2"></div> <div class="bar3"></div> <div class="bar4"></div> <div class="bar5"></div> <div class="bar6"></div> </div> <script> function rotate() { var count = 0; var elem = document.getElementById('div2'); elem.style.MozTransform = 'scale(...

CSS element back to default style

Is there a fast way in CSS to remove all of the styles applied to an element? For example, say a tab menu of some sort: <div class='outer'> <div id='d1'></div> <div id='d2'></div> <div id='d3'></div> <div id='d4'></div> </div> The CSS is applied... .outer { foo:blee; bar:blah; bas-bloo:snork; /*...long long list...*/ } Now,...

advanced rollover to display extra options

Hi, I have a web app that has a list of user comments. I want extra options for these comments (vote, reply, etc..) to appear only when the comment itself is mouseover-ed The best example of what I am looking for would be a youtube video: http://www.youtube.com/watch?v=s2VzLn6DMCE&amp;ob=av3e When you go to the comments the options...

How to load all scripts, stylesheets, and markup from one js file?

The following small snippet of code cannot be changed once deployed (it's in an RIA) so everything must be loaded via a bootstrapper.js file: <div id="someDivID"></div> <script type="text/javascript" src="bootstrapper.js"></script> What's the best way to load up all the js, css, and markup? Is there a better (cleaner, faster, crisper...

.NET: Is there a system enum for CSS media types?

I notice that when I include a reference to an external CSS file in my HTML file in Visual Studio 2010, I get a very nice list of possible values for the 'media' attribute. (The options are all, aural, braille, handheld, print, projection, screen, tty, & tv ... if you're interested) Is there a system level enum with all of the possib...

min-height 100% doesnt work on inner div

I have a div called "content" which I wish to at least take up the entire height of a window. So what I did was this: body { min-height:100%; height:auto !important; /* The following probably aren't relevant but I'll include them just in case */ min-width:600px; color: #fff; font-family:'lucida grande',verdana,helve...

inside div automatic fit width of li in ie

Hello <div style='width:500px'> <ul> <li> some text in 1 line</li> <li> some text in 1 line</li> <li> some text 2 line</li> <li> some 2</li> <li> 2</li> </ul> </div> I don't know what is the correct css code for display of items in ie like: first two results automatic fit in first line and rest of the results...

Web content editor - help or opinion

Hi guys, i want to apply for this job as description below: This employer is looking for a competent and experienced student to create a website. You will be required to update web site content through a content management system online. Initially the employer needs an online store product upload and monthly newsletter/VIP voucher con...