css

How to cycle through each li or div front and backwards using jquery

I have a ul with around five <li> items. E.g. <ul> <li>Step 1 : Take food</li> <li>Step 2 : Go Around</li> <li>Step 3 : Deliver</li> </ul> Also I have links like <a href="# id="prev"> Previous</a> and <a href="#" id="next"> Next</a> I have to show the first li at first. Then when the next link is clicked, it should now ...

Design tips: Visual distinction

Hi there. Currently I have a site where it has a header that looks something like this: note: dd = dropdown ------------------------------------------------------ |[game specific dd][game specific dd] [main dd]| ------------------------------------------------------ now my question is, what sort of visual distinction would you...

How to align the table cells content on the top ?

I have a HTML table. Each cell has content of different length. For this reason, the content is not aligned on the top. I would like the first lines be aligned also in cells with few lines of text (the content should always start from the top). Instead the content is vertically centered in the middle. How can I fix this (a cross-bro...

css image placement

I have a full width container (100%) and i like to have a image inside NOT A BACKGROUND for clicking purpose... How can i center the image into the container horizontally ? here is a sample : http://notrepanorama.com/test/ Solution : .centerimage { margin-left: -960px; width: 1920px; left: 50%; position: absolute...

Mouseover submenu broke

Hi! I had a mouseover submenu working very nicely on my site (so nicely in fact that it was working exactly right in Chrome, IE 7 & 8, and FF), but now it's broken somehow and I can't see the problem. Here's the CSS: .MainMenu { width: 90% !important; min-width: 800px; height: 42px !important; padding: 0 0 0 10%; o...

Shadow in IE browsers (css3 htc file)

I have come across this website: http://www.fetchak.com/ie-css3/ It seems to work when I enter the URL in my IE6, then the "cat" in the picture further down has a "shadow" effect around it. However, I follow instructions but can't get it to work. I have a php file, which dynamically outputs images of classifieds. These images has a c...

Position element vertical center based on height

I have a div that can have various heights based on the size of the text within it. I use jquery to show it when a user hovers over an icon. I want the div to appear vertical center to that icon. I can't use the normal method of: height: 100px; top: 50%; margin-top: -50px; because I can't specify the height of the element due to the v...

HTML Wamp - debugging required

Well I built a page which is working absolutely fine as you can see below: but when i copy my folder to C:\wamp\www\myFolder and run it through localhost using WAMP Server it look something like this the problem is that the attached Style Sheets are not working and the Java Script is not working. see below where you see the gre...

Inline div acts like block when containing block input buttons.

I'm not great with CSS, but I want to create two select lists with a button panel between them to control the movement of selected items back and forth. I want it to look like this: +----------------------+-+ +----------------------+-+ | | | ___ | | | | | | |_>_| | ...

using z-index and position in css to seperate design and core!

I am using the yui-grids css (irrelevant if you don't know what this is) with three columns. and I'm putting all the fancy design stuff on the left column and using z-index and relative psitioning bringing them in the center. and then putting all the important stuff like forms, inputs buttons, links and context in the center. Is this wro...

Easy HTML/CSS Help. Can't seem to figure this out!

I'm trying to line up some text between two images on its left and right. Why isn't it moving up? <img src="srchere" /><span style="padding-bottom:10px;">Some text right here!</span><img src="srchere" /> The two images are larger than the text, so it looks like the text isn't aligned and is positioned lower than the images. How do I r...

How to get to display images sized correctly in Outlook 2007?

The width and height style attributes doesn't seem to work for Outlook 2007. For example putting in <img src="images/image003.jpg" style='width:49.5pt;height:169.5pt /> in a table cell doesn't affect the image size at all and the image occupies the whole table cell. ...

Using visibility: hidden and display: none together in css?

The reason i want to use the together is that i want to hide the content like display: none does, without leaving any whitespace as visibility: hidden does. At the same time i want the hidden content not to be copied when the user copies the entire table from the webpage, not because it is sensitive information but because the user hid ...

button height problem when using &#10; char for line break

i'm using the char to make a line break in a button label. here is the code: <html> <input style='width: 50px;height:60px;' type='button' value="abc" /> <input style='width: 50px;height:60px;' type='button' value="abc&#10;asd" /> </div> the problem is that a button that's has the char in his label is not in the same he...

CSS - Optimizing rounded corners for speed

I'm trying to optimize my site for speed. I used images for the rounded corners before but now I've changed them with border-radius and -moz-border-radius css rules. Which way is the best for speed? I used to think that css rules are faster but I've seen a lot of sites talking about css sprites and I'm a bit confused now. Oh and I don't ...

HTML/CSS - Why does float:left render as 'invisible'?

If you have two divs contained within a div: <div style="border:1px;"> <div style="float:left;background-color:red;width:20px;height:20px;"> <div style="float:left;background-color:red;width:20px;height:20px;"> </div> The two inner divs are rendered as 'invisible', as in the container div doesn't stretch to allow them to fill,...

border-image: workaround for IE

Is there any workaround for IE which makes me able to use border-image? I'm developing a site and it's working properly in every browser but IE. I need to mimic these bars I could use the ie-css3.htc hack but border-radius works only with the four corners together (which doesn't apply here, 'cause the top border isn't rounded) and the...

Is it possible to prevent linebreak after H2 tags?

I'd like to display something on the same line but keep the H2 tag (just so I don't have to change it in a bunch of different places). Can this be done using CSS? ...

CSS Compatibility between IE8, Chrome, Firefox and Safari

Hi, I am writing a JSP page. I need to have a table. One of the statement is: where recordTr_SubGroup is in a file style.css .recordTr_SubGroup { background-color:#81BEF7; cursor: default; } I intend to highlight the row with the color. But finally, it happens correctly only in IE8. Firefox, Chrome and Safari cannot produce ...

CSS: Hyperlink box not clickable unless I specify a background-color in IE8

I'm trying to make a 256x256px transparent clickable box thats on top of 3 layers which toggle on/off (just a status display). I gave the 3 layers a z-index of -1 and the hyperlink box a z-index of 5, so it should be on top. This code works fine in chrome and firefox. The strange thing is if I set a background-color for statuslink it dis...