css

What IE version should you install to check CSS compatibility on IE with a Mac?

I'm trying to fix my css on IE, and I want to check to see if it's working. What version should I install and from where? ...

CSS: working with absolute element inside a relative container

I have a FF problem when using an "absolute" element inside a "relative" container <table> <tr> <td style="position:relative; height:40px; width:80px"> <img style="position:absolute; top:0px; left:0px" src="pic.jpg" />TITLE </td> </tr> </table> What I'm trying to achieve here is to position the image on the top-left ...

Quality of code improvements.

Hi, This is more of a improvement and suggestions question than one clear defined answer. I have been working on the website for Naked CSS Day 2011 for a bit and was wondering if anyone had any suggestions on my code quality/efficiency. In the spirit of the event I am attempting to bring everything into in the purest and cleanest form of...

Rails Production server: stylesheets not displaying!

I just switched over from my development database to the production database, and I realized I'm getting a consistent error nomatter what view I try to open. The stylesheets are not loading correctly, despite being in the correct place. Here's some information about the error: View <head> <%= stylesheet_link_tag "global", "home", "htt...

style and script tag sequence

Normally HTML page contains following tags <script> <link> <style> I found number of times that changing the sequence of those tags, mess up with page layout. So what would be the reason and what are the points to avoid this situation? EDIT After looking the answer of @Anurag, I'm actually assuming that we don't have a case where ...

Div relative positioning issue in Internet Explorer

The HTML: <div id="broadcast"> <div id="broadcast_header"> Neighbourhood Broadcast </div> </div> The CSS: #broadcast_header { background-color: #A0522D; width: 100%; height: 20px; position: relative; top: -20px; font-weight: bold; } Firefox: All fine, header appears 20px above the div, its cool. IE: Refuses to...

Styling Readonly fields in using CSS

Hi, I have many forms which has many text input that are read-only. I am doing this since users are not allowed to edit this anymore but they are allowed to view it. My problem is the rendering on different browser. FF is doing fine in rendering this but IE6/IE7/IE8 is not doing any good. It is graying out the field and does not dis...

2 boxes of same height (percentage)

How to create two boxes (floating side by side) of same height. I want to create boxes of height 40% of the container/window? ...

How do I determine which css media type is being requested on my page?

Hi, I'm looking to alter the way my asp .net webpage is output to the browser depending on the css media type being used. Although the css is generally taking care of the differences in appearance between screen and print mode I would also like to make some minor adjustments to the markup when print mode is required. I would simply be...

HTML table - fixed width columns and horizontal scroll

I need to create an HTML table which has fixed column widths, say 200px for each column. If the table exceeds the horizontal width of the browser viewport then there should be horizontal scroll to view the columns which are off-screen. As the table is being dynamically generated from a database there will be an indeterminate number of co...

How do I create a 'linklist' like a tooltip with HTML and CSS or jQuery and CSS?

Hello all, I hope you can help solving my problems. Any help is much appreciated. Thank you in advance. HTML&CSS: I tried creating a 'linklist' with HTML and CSS which you can find in this fiddle. Unfortunately and logically the 'linklist' displays by hovering over the link 'Linklist', by leaving the link there won't be any display. ...

what is the difference between css font size using em and percentage?

Possible Duplicate: Font size in CSS - % or em? well i was trying to understand the different sizing options in css and i got lost between ems and percentage. they seems to be the same i mean 1em = 150% and 1.5em = 150%. and they do cascade too from parent elements. am i missing something? ...

CSS simple menu - how to align?

Hello, Got a newbie CSS question, just beginning to get into CSS so please bear with me. In my ASP.NET MVC app there's a menu: <div id="menucontainer"> <ul id="menu"> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li...

why is div inheriting the property of sub div?

hi there, in the header section of my web page, the design is something like the logo and navigation div should overlap a repeat-x image(i.e bg-header). this is the html i have used <div id="header"> <div id="header-bar"> <p>kljslakdjlaskjdkljasdlkjasdlkjaskldjasjd</p> </div> </div> and this is the css #header { ...

Div positioning problem in IE

down vote favorite The HTML: <div id="broadcast"> <div id="broadcast_header"> Neighbourhood Broadcast </div> </div> The CSS: #broadcast_header { background-color: #A0522D; width: 100%; height: 20px; position: relative; top: -20px; font-weight: bold; } Firefox: All fine, header appears 20px above the div, its...

How to fix <div>width with firefox ?

hi in the below div width is 675. width:675px is working currect in inetrnet explore 8&9 buy in firefox and google chrmo display width 2px extra.. why like this. How to fix 675 in firefox and google chrmo ? <div style="width: 675px; height: 50px;border: 1px solid red" > </div> ...

How to specify font attributes for all elements on an html web page?

When I set the font family, font size, color etc. it seems that some nested elements override these with ugly browser defaults. Must I really specify those a dozens of times for any kind of element on my page, or is there a way to set them globally once and forever? How to do that? ...

::moz-selection does not apply to input elements

Is there anyway I can get ::moz-selection applied to input elements, even if I have to edit some file in userChrome.css, userContent.css or some similar file? thanks ...

ie shows things backwards? how to fix

i have an ie problem for some reason my tabbed menu shows the opposite way in ie than it should it should have tabs on the top right and tabs on the left side of the container but only in ie the tabs appear on the right hand side i cant seem to figure it out here is my html lists , some script and the css applied to them <ul> <li...

how to fill div with full height of page in css? (page is taller than 100%) for ajax loading gif background

Hi Guys, ok there are several similar questions but not quite anything that I want. I have few ajax requests on page and I want to show the image in the center of the screen, and its all working OK. Just to make it look more prominent, I wanted to place that image on a div with translucent background, so its more obvious for the end...