css

How to style content in jQuery Facebox

I'm using jQuery Facebox plugin to create some modal windows. One situation is to display errors that might occur. If JS is disabled, I do this by displaying any errors in a normal div that is styled by CSS using a class selector. If the user does have JS enabled however, that div is hidden and the info is displayed in a facebox. The pro...

HTML Position DIV Tag to the absolute TOP

.myDiv { background-image: url(urltomyimgheader); height:100px; margin: auto; position:relative; top:-10px; width:600px; } This is a simple div tag used to display the logo... I have made the top -10px to make it touch the top of the browser where unless there is a gap between the logo and the page. However i feel bad about us...

Inserting CSS with a Firefox Extension

Hi I'm building a Firefox extension that adds HTML elements to certain pages of a website. I want to have it insert a custom CSS file to style those elements. It works if I insert tags with the CSS right on the page, but that's a less than ideal solution. Is there anyway to get it to load and parse a CSS file, as if I used the ta...

Generic CSS templates anywhere (not layout)?

I am looking for a place where I can download a bunch of CSS stylesheets to change the appearance of my titles, links, paragraphs, etc. I am not an artist, so I am hoping to leverage other people's skills in choosing the right fonts, colors, sizes, etc. I do not want to include layout because then it won't be as generic. Does anyone kno...

How to remove an element without id

I have the following code: <%-- other tags --%> <table> <tr width="100%"> <td width="130" /> <td id="BottomCell" width="100%" /> </tr> <tr> <td/> <td/> </tr> </table> <%-- other tags --%> There may be more than one table on the page. I want the td before "BottomCell" to be removed (or hidden) when the page is ...

Should I aim for fewer HTTP requests or more cacheable CSS files?

We're being told that fewer HTTP requests per page load is a Good Thing. The extreme form of that for CSS would be to have a single, unique CSS file per page, with any shared site-wide styles duplicated in each file. But there's a trade off there. If you have separate shared global CSS files, they can be cached once when the front pag...

How to fix a Sticky Footer that works, but after a browser window is resized, the footer overlaps.

Good day, I've been trying to build a perfect footer who sticks at the bottom of the browser window after it's content. And I got help here @ Stack Overflow previously. But after a while, and doing a few tests, found out that after the browser window is resized, and then I scroll down , the footer overlaps...it is causing me a big hea...

How do I change the cursor during a jQuery synchronous browser blocking POST?

$.ajax({ url: "/cgi-bin/stats.exe", method: "post", async: false, data: { refresh: "a41" } }); Using ajax post synchronously - "async: false". While it blocks the browser during the active request, what is the most efficient way to change the cursor to the hourglass or display a wait .gif? Perhaps ...

Custom Scrollbar in GWT

I would like to put in my own graphics instead of the OS dependent boring scrollbars for the website I'm building. Is there a way to do this in GWT? ...

Flash animations with Javascript?

Hi all, How does something like this work without Flash? http://www.dirtyphonebook.com/dashboard/425-205-1921 I right-clicked on it but there's no Flash menu. I love Flash because its stable and works. But is using some sort of Javascript hack for this kind of complex behavior actually a good idea? ...

Aligning to the bottom of an li?

I want to do this without javascript. I can't figure out how to make all li with class "item" align to the bottom of the div#recent. Basically, every li is 192px wide. The problem is that each product image is a different height, so if one is only 40px tall, the text is at a different position than the one next to it. <div id="recent">...

zopim chatting service like div required

if you look at this http://blog.zopim.com/ site, you will see on the bottom side a chatting service,, i actually dont want the chatting service,, i just want the div to be up on the top of all the stuff present at my site.. just like this one.. how can i have that,,, if any samples please share it.. it wud be quite helpful.. thanks......

Floats being pushed down in IE8 but not IE7 or Firefox

The page in question is here: http://supportdogs.digitalportals.net/PhotoGallery/16-Events You can see in IE8 that the content is being pushed down under the sidebar. If you view it in IE8 compatibility mode, it doesn't happen, nor does it happen in Firefox. If you browse to a different page in IE8 the issue does not persist. The ba...

Floated DIVs not flowing properly

Hi everyone, I am working on a photo gallery, each thumbnail is in its own DIV and floated to the left in a containing DIV. It has been displaying properly up until vertical thumbnails entered the equation. Now, when the next row should start, the first item of the following row is to the left of the last vertical DIV (thumbnail), rathe...

CSS float column extending over footer

Hi, I am having a problem with my CSS whereby the right hand column in a 2 column layout is extending beyond the footer. I have tried playing with the clear: both; property but I cannot get it to work.. the second column has the id column2 both columns use the class column. The footer html has the id footerWrapper Both columns and ...

Rendering inconsistencies in Internet Explorer

Hello, I have some weird problem in rendering some xhtml in IE 8 http://img709.imageshack.us/i/scrj.png/. Here is the screenshot. As shown the greet me submit button is higher than the text field. Which is kind of odd. I checked with some other browsers and it works fine, it also works fine on Windows 7 with IE 8. Here is the code for ...

CSS for toolbar with UI Slider centered between left and right buttons

I'm attempting to create a 100% width toolbar. This toolbar needs to have a variable number of buttons aligned to the left side, as well as a variable number of buttons aligned to the right. That's the easy part. But now I want to put a jQuery UI slider in the center that takes up the full remaining space between the buttons on the left...

min-height or sticky footer which is preferred idea?

If in content is too small in pages then it look odd . to show some space to make looks good which method would be better. min-height to #main-content or sticky footer, which is preferred idea? ...

Is it bad use "display: table;" to organise a layout into 2 columns?

Hello, I am trying to make a 2 column layout, apparently the bane of CSS. I know you shouldn't use tables for layout, but I've settled on this CSS. Note the use of display: table etc. div.container { width: 600px; height: 300px; margin: auto; display: table; table-layout: fixed; } ul { white-space: nowrap; overflow: hidden; ...

Is there a way to use javascript to remove all changes that javascript has made to an element's css? In other words, is there a way to asychronously redisplay an element with its original css formatting?

For example, <html> <body> <img id="pic" src="original.jpg"/> </body> </html> In Javascript (jQuery): $("#pic").attr("src","newpic.jpg"); Now, is there a way to reset #pic's src to original.jpg without explicitly setting it as $("#pic").attr("src","original.jpg");? ...