css

I need opacity (transparency) for a img with css ie8

I added the attribute opacity: .3; to my img tag but it only works for firefox. Is there a solution for firefox and ie8? ...

Text not aligning in HTML using CSS

Here is my markup <div class="code php"> <div class="container"> <div class="line-numbers">1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 </div> <code> <?php $people = array('henry', 'foo', array('jeff', 'bar'), 'tom', 'barry'); foreach($people as $person) { if (is_array(...

Forms: Does your css accomodate your markup or vice versa?

Regarding html forms, a very common markup pattern is: <form ...> <p> <label>Name:</label> <input .../> </p> <p> <label>Birthdate:</label> <input .../> </p> .. <input type=submit/> </form> How much markup (classes, etc.) do you typically provide to allow for the most flexible visual formatting of the form? ...

Jquery - How to hide images when there is no stylesheet?

I am using a CSS hack where the image is scaled, but there is a problem. If the user switches the stylesheet off, the image used as the background is shown, sometimes the image is really huge. Therefore, I need to hide the background div when there is no stylesheet. I've thought about dynamically adding the image via JQuery, whilst th...

What does a browser consider as a page?

Hello, a) What does a browser consider as a page? Assume monitor has a resolution of 800*600 and we expand browser to take the whole monitor surface area A1. If we resize a browser to an area A1 ( A1 < A) such that it still captures the whole html document ( thus we don’t have to scroll ), then browser considers A1 to be the whole p...

Apply CSS Class to Image in asp:Hyperlink?

I'm using asp:Hyperlink to render linked images dynamically based on parameters in the URL. I need to be able to add a CSS class to the rendered img, and can't figure out how to do that. I know I can add "CssClass="blah"" to the asp:Hyperlink, but in the rendered HTML, only the a receives the css class. Like this: <a href="assets/image...

Form Problem in ONLY IE6 and IE7

For some reason the form inputs are pushing off the left margin.. I have no clue why! Below is the link.. http://mimedx.com/mg/contactus.php I have no clue why this is happening. Probably Microsoft being Microsoft and having some random rule that conflicts with standards.. CSS: #content form { overflow: hidden; width: 550px; } #co...

Obtaining the functionality of Flex Tile Container in HTML

The Flex tile containers will create and remove tiles as the data changes and seems good to use in areas where the content is dynamic. How to implement this functionality in HTML? I guess that we need to use some JS and/or CSS. Any inputs? ...

Why doesn't this simple jQuery toggle animation work properly?

Your help would be very very much appreciated. I spend 4 hours trying to figuring this out, but was not successful, albeit it is a very easy example: Given the following (full running and Copy and Paste ready) example, I have two Strange Problems (occurring both on IE and Firefox): 1.) When having the line <div id="notexid" style="clea...

Django, category and subcategories

Hi guys, im working category and subcategories with the DataModel, all is fine in this part, but i need to use my category and subcategories in my Menu Nav, im try to use this Jquery menu , and im rendering my menu with subcategories, but im lost with rendering the subcategories in the way: <ul> <li> <a href="#">Category</a> ...

Is there a CSS selector that selects a dt and its associated dd elements?

Definitions lists are a great way to mark up information where some key word is associated with one or more values. Since there is the semantic association of a dt with one or more dd elements, is there a way to use CSS to select these associated items. Consider the following html: <dl> <dt>Foo</dt><dd>foo</dd> <dt>Bar</dt><dd>bar...

CSS3 box-shadow, all sides but one?

I've got a tabbed navigation bar where I'd like the open tab to have a shadow to set it apart from the other tabs. I'd also like the whole tab section to have a single shadow (see bottom horizontal line) going up, shading the bottom of all tabs except for the open one. I'm going to use CSS3's box-shadow property to do it, but I can't f...

Positioning DIV

Hey Guys, I'm looking to deconstruct some javascript I found for a lightbox plugin on a site. I was curious if someone could help to decode this piece of script? I would like to implement it into my jquery but need to discern what I can use what I cannot. Currently my issue is that my positioning jquery aligns my div to the vertical...

Drop Down Box Keeps flickering - JQuery and CSS

I am having difficulty with something really basic. I am trying to implement a drop down box with JQuery and CSS. I can not figure out why my drop down box keeps flickering when I hover over the "Products" link. Here is a demo of what I am working on. http://174.132.101.73/~ree/header/ I would appreciate any help on this. Edit Well t...

need to add .css to a class

I need to add some css to a class. This is what I have so far: $(document).ready(function() { $('.tech').css({ "border-bottom": "dotted 1px #0860a8", "text-decoration": "none" }); $('.tech').Tooltip(onMouseEnter) }); Its not working. What can I do to show up for all class="tech" ...

HTML CSS adding a row removes css

Hi, I have the following problem of adding a row to a html table with css column specified but when a row is added the columns no longer use the css. Does anyone know why this is happening and how I can get around this? The code is below. <table class="Grid" style="width: 740px;"> <thead><tr><th class="cbx"><input type='checkbox'/></...

Resources for css styles for LOB ASP.NET apps?

I am looking for CSS style packages (not css layout templates nor css grid frameworks) which can define the general look and feel for line of business apps written in ASP.NET. The style file would include styles for the GridView (header, row, alt row), form elements, section headers..etc. The package preferably uses em's for dimensions,...

Detecting div height on resize [Updated]

I am trying to detect the height of a div that I am loading content into. This div does not have a specified height, as I am loading pages into it and they themselves fill up the div in different amounts. I think the code I am using is not working… The #content div is getting the correct height on document load, however I cannot get the...

Namespacing/Scoping in CSS

I want to apply the rules in a CSS file to a certain div/class so, for example, the contents of events.css is only applied to the contents of a class called .events and not outside this scope without the need to add the class .events to the start of each css rule. I am thinking this is not possible though - but you never know. If not I...

Problem with Input and anchors between browsers

Hi guys, I have a problem with css and FF3 / IE7 and Opera 10. I have one input[type="submit"] and one anchor and I want to style them the same. No matter what I try the only logical browser seems to be Opera 10 (it styles them the same with the same css). FF seems to have different padding (I would need to have the submit box 1px sma...