css

Can you make floated elements in a div not wrap?

(The target browser is IE8) I have a div that contains a list of elements floated left. The elements width can change at runtime. I'd like to make it so that if they longer fit in the div it just gets cut off and doesn't wrap to a new line. It only seems to work if the item is on a line by itself: This page demonstrates the problem: (...

Best Way to do "Skip Navigation" with CSS for 508 Compliancy

There is a requirement in Section 508 to code a "Skip Navigation" at the top of all web pages in order to allow the Seeing Impaired to bypass lengthy and repetitive top navigation. Originally, I thought the best way to do this would be to put the words in the page and use CSS "display:none" to not show them. But I have read that you can...

CSS: resolution problem

my site has three div elements, header, content and footer. i have a picture in header, and i want, that under big resolutions too it looks nice. so i take big image, with 1800px width. by so it looks nice in resolution of 1800, but now, in small resolutions(for example 1024), it shows only first 1024px of my picture, but i want it to sh...

What can tables do that CSS positioning cannot?

I know there are various good arguments preferring css positioning over table-based layouts. What I'm wondering is whether the CSS model is complete (assuming a relatively modern browser) with respect to ALL of the capabilities of tables. Are there layouts that tables can achieve that are impossible or impractical with CSS? ...

Android Webkit: Absolutely positioned elements don't respect z-index

Nasty little bug, this one. As illustrated in Android ticket 6721, the Android browser seems to not respect z-index when absolutely positioned elements are laid over the top of <a> or <input> tags. I am desperate for any sort of workaround. Has anybody conquered this one before? Thanks in advance! ...

C# WebBrowser control not applying css

I have a project that I am working on in VS2005. I have added a WebBrowser control. I add a basic empty page to the control private const string _basicHtmlForm = "<html> " + "<head> " + "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/> " ...

How do i sit 2 divs left and right of eachother

So what i am trying to accomplish is sitting <div id="box"> left of and <div id="box2"> right of inside the container of <div id="content"> I must mention they cannot be position:absolute; unless there's a way to make sure the height:auto; div doesn't lose it's height because my experience position:absolute; seems to be floating above th...

jQuery ui Accordion degrades in IE6 or IE7, but is working in IE8

There are two accordions on my page, with custom accordion CSS in another file, differentiated by class and ID names so as not to conflict with each other. The accordions don't show up at all, they just degrade to showing all the content at once, as if all the accordion styling is gone. The accordions are both called around the middle of...

What ways can I put images in a grid-like format?

I have about 12-15 images that I want to align together in a grid, with text under each image. I thought about using a table, but I hear that tables aren't the best way to go these days. I tried a few other things, but nothing seemed to work the way I wanted it to. An example of what I want it to look like would be something like this: ...

What are some good ways to prevent people from copying my source code?

I have a lot of customized javascript and layout design, and I want to prevent as best I can people just copying and pasting and then using it for themselves. Is there any practical way to do this, or do I basically just have to be happy my php code does not show? I want to at least make it difficult to copy my site. EDIT Thanks for al...

Firefox CSS error

Hello! Please visit http://domenadesign.com/istra-bike.com with Firefox browser! After a few clicks on the links page go crazy but only in Firefox, what's the problem? I tried to experiment with anything in css (position, float...) but it doesnt work properly.. Thank you for your answer! ...

CSS position absolute doesn't work in IE7

i have the following simple script, but it doesn't work in IE7 <div id="content"> <div id="left"></div> <div id="right"></div> <div id="bottom_menus">any text here...</div> </div> and CSS #content { margin: 0 auto; padding: 0; width: 980px; background-color: lime; height: 800px; overflow: hidden; ...

CSS 3 columns, why is the third column taking over the other 2?

Here is the smallest amount of code that clearly illustrates my problem: <html> <body> <div style="float: left; width: 200px;">One</div> <div style="float: left; width: 200px;">Two</div> <div style="background-color: #f0f;">Three</div> </body> </html> The first 2 divs are supposed to be 2 left columns. The 3rd should take...

Block element, horizontal center aligned and minimum width possible

Hi, I'm trying to have this block element to be horizontally aligned in the middle but at the same time I would like the width to be the minimum possible for the contents inside. But I don't think it's possible or I'm not able to do it myself... a#button-link { background: url("images/button-link.png") no-repeat scroll center left;...

Sub Menu Rollover Pop up Not Showing

Hello everyone, hopefully this will be an easy answer for some of you CSS veterans out there. I'm developing a site for a client. For readability, I'll just give you a link to the website and the css page in question. HTML CSS I'm trying to make a sub menu pop up to the right of the main menu when you scroll over "Star Quartz Grout." ...

How do I get the same buttons as Youtube?

http://www.youtube.com/ You see the "search buttoN". it's really nice. ...

CSS - Inheriting layered background images

CSS3 supports multiple background images, for example: foo { background-image: url(/i/image1.jpg), url(/i/image2.jpg); } I'd like to be able to add a secondary image to an element with a class though. So for example, say you have a nav menu. And each item has a background image. When a nav item is selected you want to layer on anot...

Positioning divs inside a container div without the content of an upper div affecting the position of a lower div

Hi. I'm trying to accomplish the following layout, and I'm almost there, except for the last green div, which is going lower and lower depending on the content of the content (white) div. If I set a value for the TOP property for the green div, and then I add some more text to the content div, the green div goes lower and lower. Si...

simple float issue on wordpress blog

I am modifying a wordpress theme completely, and have run into one very simple problem. Please look at my page here: wordpress blog When you scroll down, you can see the one blank area under the first post. For some reason, that block isn't floating left. Each post has the following css that fits in a 645px container: .home-post-wrap {...

stop text-area from resizing in Safari

hi...Safari gives resize handles for text-areas. anyone knows how to stop that? thanx ...