css

IE javascript compatibility is killing me...

I left cross-browser compatiblity issues for last, and it seems IE is going to be a big pain. Nothing is working in IE; First of all, the following is not working: var img = document.createElement("img"); img.setAttribute("height", "270px"); I have an invisible div onmouseover which displays a transparent div "cpanel". I cant access ...

Why do dev tools offer Quirks mode?

I'm wondering if anyone has a rationale for why web development plugins for browsers offer buttons to display content in quirks mode? Are there people out there that markup for quirks mode on purpose? What's the point of seeing how a site will display in quirks mode when the markup already has a doc-type? Am I missing something here or...

CSS mouse-over overlapping tabs?

I've got some tabs. And I want to add a rollover effect. Problem is, the tabs overlap each other so there's no nice place to divide them. Should I just use absolute positioning and PNGs to stack them, or is there a more elegant solution? ...

How do you center a textbox inside an ASP panel?

Let's say my panel is 200px and i want 5px padding on the left and right, the textbox to be the max size it can (I could calculate it but is there a dynamic way to do this with the browser). The trickier part is how do I get an even amount of padding on top and bottom? ...

getting the mime of text files

I am using a piece of code someone pasted for C# which uses urlmon.dll. It reads in <= 256bytes and returns the mime based on the data. Problem is it cant distinguishes a css file from a text/plain. I can goto /style.css but when including it in my html the CSS does not show up. I am using urlmon + context.Response.TransmitFile to send ...

using <form action='page.html'> <button type=submit> to make a button a hyperlink?

This is how I construct my stylized buttons. <span class='button button-orange' id='sign-up'><input type='button' value='Sign up here' /></span> Putting an anchor tag (with href) around the span lets you hyperlink in FF but messes up in IE if your mouse is hovered over the button's value attribute value. (value='Sign up here') Is the...

Using CSS text-overflow to vary the number of lines of text within an element of a set height

I'm deep into some iPhone (Safari/WebKit) web app development at the moment and want to have items of a set height with title text and body text such that 3 lines are always showing. If the title text is short, 2 lines of body text should show. If the title text is very long, it should take up a maximum of 2 lines and leave 1 line for bo...

Lightwindow

Has anyone used LightWindow control from stickmanlabs? I want to do some client side validations within the lightwindow and feels it doesn't support that looking at documentation. I used 'Working with Forms' part of the documentation to bring it to a point where the loaded html postbacks to a php successfully. I'm ready to accept the f...

Overflowing HTML line text before it gets obscured by right aligned content

I've got some text that is displayed on a single line in a container that has a fixed width. If the text can't be contained within the width of the container the overflow is hidden. Any combination of three status icons may appear positioned from the right hand side of the container. If any of these icons appear I'd like the text overflo...

Centering page when zoomed in IE7

I am building a website for a client who wants their page to zoom perfectly in IE7. I have finally managed to get around most of the bugs, but one. When you zoom in on the page, it centers fine, but then when you go to another page, the page renders and displays the top left of the page. I need to make it render centered. I know it is p...

quicktime movie layering issues

I have a site (link below) where the clients work displays on a long horizontal page. The menu is fixed on the left hand side and the images disappear under the menu when scrolling across. The client has now uploaded quicktime movies which do not go under the menu like the images but scroll over the menu. http://www.calebchurchill.com/...

Disabled Buttons in CSS?

Hi All, I'm trying to get a button which looks exactly the same whether it is enabled or disabled, but whenever I disable the button it seems to ignore any font styles I have set. This seems to be the case in IE but not other browsers. So does anybody know the CSS to change a disabled button so that the font is not embossed? Thanks in...

selecting divs retrieved through AJAX in jquery

Hi, I'm creating a basic forum where every message contains the authors name, some text and the date it was created. I'd like the forum to update constantly through AJAX, and show new posts that were created on the fly. I currently have a PHP file getlatest.php?lastid=... that retrieves all posts from the ID given to the most current. It...

Can I re-use the CSS files from jQuery UI?

Yesterday I used jQuery UI for the first time and I think I'm going to switch from Dojo to jQuery UI. I noticed that jQuery UI comes with a set of CSS themes. Can I use them in my pages for non-jQuery related stuff? Are the CSS class names subject to frequent changes? Are there any other things and/or best practices I should be awar...

Control Height of <li> in IE 7

I have a menu built with <ul> and <li> tags. I want to have small separators between sections. For the separators, I just set a background color and a short height on an <li>. Looks very nice... except in IE7 where the <li> seems to refuse to change its height to be shorter than all the other <li>s in the same <ul>. I have tried differen...

Big problem in IE 7, Wordpress pages wont scroll

Well Wordpress is pretty key to my website, Ive had many a problem with IE but now its a major problem, as you can see (link removed due to possible malware; see history for link). Firefox, Chrome, Safari are great, including the latest version of IE I think, but IE 7 does not show the scroll bar or page down. Any ideas what could be m...

asp:GridView style not chaning in IE

I put a gridview on a page and used one of the default styles that VS 2008 comes with. I used brown sugar and then changed the values for the backcolor, forecolor, etc, but when I run it in IE, it still takes on the Brown Sugar appearance. When I run it in firefox, it is applying the styles I gave it. ...

jquery easywidgets after drop widget then their style changing

Hi everyone, I'm trying to use jquery easywidgets plugin, When i tried to drag and drop on the any widgets, divs style changing, especially texts are pixelerate. you can also see on the pictures. Before drag After drag What can i do for solving that problem ? Thank you ...

sprites vs image slicing

I don't have much experience with the sprite approach to images (http://www.alistapart.com/articles/sprites). Anyone care to share some pros/cons of sprites vs. old-school slices? ...

Creating Valid XHTML Clickable Block Region

I'm trying to make a "clickable" region. <a style="display: block" href="http://stackoverflow.com"&gt; StackOverflow </a> A is an inline element but the CSS made it a block. If the above is valid, then the following should be valid too: <a style="display: block" href="http://stackoverflow.com"&gt; <div>Some DIV that link...