css

Expand collapse div with css

hi experts, I want to display the overview of blogs of a user ie Title of blog and two and three rows of blog body and after a expand-collapse button. I used Mootoots Multislide jquery for that... but totally wasted. So my idea is can i get a css over div with a fixed height initial and when expand-collpse clicked height goes auto..??? ...

giving margin between two divs ?

In a page I have to display two div one on top and second under it (just like showing something in a column). Requirment is to have 15px margin between two divs. I tried to set top margin of second div and found the space between them but than top border of second div was gone. I even tried to set bottom margen of 1st div but again the...

GWT CSSResrouces - what's the advantage or the best way

Hey, I'm developing a GWT app and now facing the CSS part. I read a lot about this topic at the official site but still have a few questions and hope someone can give me a hint. When I'm using CSSResource the css styles will be compiled into the code - right? So it's not possible to change it without recompile the app. But what I wanna...

jCarousel - How to set your carousel to fluid width?

Hi All One of the websites I work on has a few jCarousel sliders each inside their own accordion boxes. ( Click the coloured bar to open a section to see the horizontal carousel ) http://mememotion.tv/ Problem: When you resize the browser window smaller, then larger again, something happens to the css. The videos are now pushed up agai...

Force refresh of cached data

Is it possible force the browser to fresh the cached CSS? This is not as simple as every request. We have a site that has had stable CSS for a while. However now we need to make some major updates to the CSS. However browser who have cached the CSS will not receive the new CSS for a couple of days causing rendering issues. Is there a way...

How to remove above and below spaces in Order list

<html> <body> sdadfasdf a <ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol> asfdasdfasdfadf </body> </html> Output is sdadfasdf a Coffee Tea Milk asfdasdfasdfadf How to remove above and below spaces in Order list ...

Alert when div height changes

Hey everyone, I've been searching all day for this but i can't figure it out myself.. I have a shopping cart that you can add items to. The shoppin cart is in a drop down so you have to click it in order to view it. Therefore, everytime you add an item to the cart i want to display "+1", "+2" and so on, somewhere and when u click on th...

Highlighting lines in different colors in SyntaxHighlighter

In SyntaxHighlighter, is it possible to highlight lines with different colors (say, some lines in green, some other in blue)? ...

What script should I attempt first?

I've just got started with the basics (as well as a few intermediate aspects) of HTML, CSS and PHP. What is a good starting point to practice these 3 languages? I was thinking of writing a URL shortening script but I was wondering if anyone here might have a better idea. I am looking to develop something that would help me broaden my ...

How to inject a CSS file from an ASP.NET MVC partial view (server-side)?

I have a partial view (.ascx) that should include its own CSS file as it's used in multiple other views. How do I inject a stylesheet in the page server-side, i.e. without using JavaScript? ...

IE8 - Font anti-alias strange behaviour (w/ prints. example)

Hi people... As every web-developer I'm tired of Internet Explorer... I'm working on a new website and use font-face (the problem may not be related but just in case...): @font-face { font-family: 'ArabicTypesettingRegular'; src: url('arabtype-webfont.eot'); src: local('☺'), url('../../../partilhado/fontes/arabtype-webfont....

CSS Layout for Header, Footer and Content with Scrollbar

I need the following layout for a webapp: +---------------------------------------------+ | header | +-------------------------------------------+-+ | |#| | content | | | |#| +-------...

CSS Overflow prevent child inheriting

I have an issue where I want to display a header in the top left of a DIV. If I set the parent to relative and the inner div to absolute I can then position it so the backgroundimage goes top right so it looks like this: http://www.landingapollo.com/random/stackover1.png That works correctly. However, in another instance it is not work...

Verifying if CSS is compatible with all browsers

Hi , Is there any way I can find out if CSS I am using works fine with most of the browsers ? I got some reference http://www.gabrielweinberg.com/blog/2009/06/a-harsh-css-environment-for-testing-widgets.html ...

dropdown width incorrect in ie

Possible Duplicate: Dropdownlist width in IE hello can someone tell me why there is a difference in the way dropdowns are displayed in ie and ff. i have set a width in css for the select class and in firefox the box expands to accommodate the full address but ie does not. i have included 2 grabs to show you. is there a solutio...

Detect location of column in html5

Is there a way to detect the location or block of a column created using the -webkit-column methods? Can this column be accessed with jQuery once it is created? Is there a way to access the nodes of a specific column? Update: Is there a way to get the horizontal position of an element? ...

Loadin CSS dynamically - jQuery vs plain Javascript

Hi, I'm loading CSS file in java script code. At first I used jQuery code. It worked fine, but after somet time I realized that CSS rules are not applied in IE browser. So I googled and replaced it with document.createElement version. Now it works smoothly in all browsers. Anybody knows why? Is there a difference in those two approaches...

Ubuntu 8 + Firefox 3.6 + Flash: DIV Overlay Problem

Situation: Got a flash object with an icon bar (div with pngs) on top of it. Works on all browsers except Firefox 3.6 on Ubuntu 8. Example: http://ListAndPlay.com Problem: Icons suddenly disappear after the flash is being loaded. See this screenshot: http://api.browsershots.org/png/512/e3/e30de0b1ad995fa1aa9c14cbc19fb43c.png What I've ...

Page will not center in Internet Explorer

Ahhh Internet Explorer. I've been banging my head against the wall for a couple of hours, and thought it might be time to ask the internets. When putting someones old javascript function on my page it makes it no longer center in IE(7). What I think is causing it is the page width is getting superficially longer as a result of the scri...

Text and image positioning with css

I have a problem with positioning a text with an image using CSS. It works good in Firefox and IE but not in Safari. The image is placed left of the text and I want the text to be in the center of the image in vertical positioning. I'm using a custom font (MyriadProLight), using font-face. This is how it looks in Safari: http://oi52.tin...