css

debugging javascript for IE6

firebug is quite useful tool that I can't think myself living without it. I also downloaded the js file that helps you get similar functionality when using IE6 hoping it would help me resolve some issues, however, the messages I receive are not quite friendly such as: "Expected ':' (default2.aspx,16)" - on line 16 there is nothing that ...

Line numbering and copy/paste (HTML/CSS)

What JS/CSS trick can I use to prevent copy&paste of numbers in an ordered list? <OL> <LI>A <LI>B <LI>C </OL> A B C If it's not doable, what alternative are available? thanks ...

Inherit css property of a:link on to asp:label text attribute

Ok, this might be an impossible question but I am adding a user control to an existing cms system (Kentico using their InlineControl base class) and I added a label that I have overriden the click event to show a div area below it. What I am having problems with is inheriting the already set css attribute of color, font-family; etc.. fr...

Applying Styles to ASP.Net MVC ViewData objects.

I have the following code in a MVC User Control (the field names have been changed to protect the innocent): <%=ViewData.Model.foo%> <%=ViewData.Model.Bar%> <%=ViewData.Model.Widget%> <%=ViewData.Model.Thingy%> <%=ViewData.Model.Address %> <%=ViewData.Model.AlternateAddress %> <%=ViewData.Model.CrossStreets %> <%=ViewData.Model.S...

How can I override an inline style with an external css?

I am trying to restyle a table generated by an asp.net gridview control. The problem I have is that the gridview is generating an inline styles. How do I make the browser render my css rather then the html style attribute? ...

<input type="file" /> opens file browse window in FireFox3 when clicking the form field part?

When clicking on the text box part of an <input type="file" /> in FireFox3, a file browsing window opens. This doesn't happen in IE7. You have to click the "browse" button to open the file browsing window. How can I prevent the file browsing window from opening in FireFox when a user clicks on the textbox area? I'd like it so it only...

Print contents of a modal popup

I have an application that shows a list of items. The user can click on an item and see its details in a modal popup (centered DIV, shown using JavaScript). I need to have a button on that popup that will allow the user to print out the contents of the modal popup only. This is for an internal application that needs to work in IE7+ onl...

HTML / CSS - DIV Element hidden when it shouldn't be?

(clickable) Mainad has a valid height and width, however it isn't shown like subad1/subad2. Which are in essence exactly the same! (just a different background image). Firebug shows my div as greyed out for some weird reason. Replacing the contents of mainad with just some text doesn't solve the problem (problem isn't related to inner...

FireFox 3 line-height

Firefox 3 has introduced a new behavior in which line-height, when unset, differs from how other browsers render it. Thus, a critical section maybe render too high in that browser. Setting a global percentage doesn't work, since it's basis is different. Setting a unitless value such as "1" doesn't work either. Is there some way to normal...

do not display text in div of background-image

I have this div: <div class="inauguration-image"> I do not want this text to display, just here for description </div> Here is the css for it: .inauguration-image { margin-top:5px; margin-left:auto; margin-right:auto; background: url("/images/inauguration_block.png") no-repeat; position:relative; width:760px...

jQuery - How to Use slideDown (or show) function on a table row?

I'm trying to add a row to a table and have that row slide into view, however the slidedown function seems to be adding a display:block style to the table row which messes up the layout. Any ideas how to work around this? Here's the code: $.get('/some_url',{'val1':id}, function(data){ var row = $('#detailed_edit_row'); ...

CSS column header with img - how to dock img/div to the right?

Howdy! I have an HTML table that I use as column headers to a grid view. Clicking on a column header triggers javascript that makes the grid view sort, and an icon showing that the column is sorted shows up next to the column text, similar to below: |---------------------------------------------------------------------------------| | ...

Best Ways to Get Around CSS Backgrounds Not Printing

It often works out great that the CSS backgrounds don't print, however, sometimes I use them to convey contextual information. What is the best way for getting around CSS backgrounds that don't print but you really want to display. The example, I'm currently working on is a table that displays financial information. Different backgrou...

In CSS, how do I get a left-side fixed-width column with a right-side table that uses the rest of the width?

So I've tried to work with the pure-CSS, never-use-tables-for-layout gospel, I really have. But after an incredible amount of pain and anguish, I'm just about ready to give up. I'm willing to go to some effort to accomplish things in CSS, don't get me wrong. But when it seems like some of the most asininely simple things that can be d...

Designing image gallery in CSS

I am new to this. I want to design an image gallery in my webpage. Currently iam using bluprint CSS framework for my web. Can anyone suggest me a better way to design a image gallery ...

Print <div id=printarea></div> only?

How do I print the indicated div (without manually disabling all other content on the page)? I want to avoid a new preview dialog, so crating a new window with this content is not useful... The page contains a couple of tables, one of them contains the div I want to print - the table is styled with visual styles for the web, that shoul...

Opacity issue with css, div, and asp:Image

Hello, I have a div that has it's opacity set to 60. Inside the div, I have an asp:Image. It looks like the opacity of the div is also setting the opacity of the image. I tried creating a separate class for the image and setting the opacity to 100, but this doesn't seem to work. Does anyone have a solution? <div id="PleaseWait" cla...

Why doesn't www.linux.org.il look properly in MSIE 7?

I'm the maintainer of http://www.linux.org.il/ and it doesn't look properly in Microsoft Internet Explorer 7. The problem I see is that the navigation bar appears to the top of the page's main text instead of to its right as in Firefox. Does anyone know how to fix it in MSIE 7 (and if possible - also in MSIE 6)? I should note that in Fi...

Superscript registered mark '®' inside select menu

Is is possible to have a superscript registered mark "®" inside a select menu? If so, how is this done? Can you use CSS to achieve this? ...

CSS Selector for <input type="?"...

Is there any way with CSS to target all inputs based on their type? I have a disabled class I use on various disabled form elements, and I'm setting the background color for text boxes, but I don't want my checkboxes to get that color. I know I can do this with seperate classes but I'd rather use CSS if possible. I'm sure, I can set th...