css

Changing Opacity of All Elements but One Div

I'm trying to fade all elements on a webpage except for one div. I've been able to fade all the elements with the following jQuery: $('*').css('opacity', .3); However, it seems as if opacity is a property that inherits from parent elements, even if I explicitly set the opacity of the div to 1. I'm drawing a blank as to any solutions...

Any way to do slanted/diagonal mouseovers via css/javascript?

Hi, I have a box built via html borders. I want to connect the bottom left corner to the top right corner with a diagonal line. Either with html/css or by using a background image, doesn't matter. I'll figure that part out later. ------ - /- - / - - / - -/---- Here's the tricky part: I want a different thing to happen depending o...

Can I change the styles of the last p only with CSS?

I've got several p tags in the content of a page. I want to change the color of the last one before the div that hold them. Can I do this just with CSS? <div class="text"> <p>P One</p> <p>P Two</p> <p>P Three</p> <p>P Four (this is the one I'd like to modify)</p> </div> Thanks ...

Detecting the operating system using JQuery or CSS

Is there a way to detect a Operating system using JQuery or CSS. With css I'm referring to something similar to <![if !IE]> I need to use a specific font only when web page is vieved using Linux and don't want to include this with other os's ...

jQuery: resizing element cuts off parent's background

Hi, I've been trying to recreate an effect from this tutorial: http://jqueryfordesigners.com/jquery-look-tim-van-damme/ Unfortunately, I want a background image underneath and because of the resize going on in JavaScript, it gets resized and cut off as well, like so: http://dev.gentlecode.net/dotme/index-sample.html - you can view sourc...

Cross browser (chrome/firefox) trying to get top-pos defined in percentage as pixels

I have a problem whit cross browser output, I'm trying to get the top and left css attribute of a div, but firefox gives me the exact pixel position and Chrome give me the percentage. Example: http://web.cinaird.se/pdf/test.htm CSS #mix{ position:absolute; top: 10px; left: 45%; background-color:#f0f; } jQuery css ...

What are cons if we do not care about validation of XHTML and CSS?

What are cons if we do not care about validation of XHTML and CSS? Errors other than CSS 3 and vendor specific properties In terms of development time(How valid XHTML and CSS code save time to find problems?), Code debugging (How we can track then problem quickly?), Cross browser compatibility (How it helps us to achieve cross browser ...

Keep background image fixed during scroll using css

Hello, This is going to be rather silly of me asking, but how do I keep the background image fixed during a page scroll. I have this css code, and the image is a background of the body and not <div></div> body{ background-position:center; background-image:url(../images/images5.jpg); } Thanks Jean ...

What is the role of CSS coding in Accessibility?

What is the role of CSS styles in Accessibility? other than to keep presentation and content separate. How and what we write in CSS file can affect accessibility of site? ...

Is there any cons to emulate IE=EmulateIE7 site rendering in IE8 as IE7?

Or i should render as default(IE8)? <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> My purpose is to make site compatible with IE8 also. ...

Is W3C Valid XHTML and CSS Code, Semantic and Accessible Mark-up enough for site's SEO in general?

I created a web-site for a client with W3C Valid XHTML and CSS Code, Semantic and Accessible Mark-up and I had said to client my code will be SEO friendly. Theyway i code it will be good for your site SEO. I putted my all efforts to make good code Now my non-techie Client is asking me, Should him go for any SEO company even after provid...

Jquery / CSS – addClass to first:p of multiple div with specified class

Hello, I'm using (trying to use) jQuery to add a class to the first paragraph of every div with class of ".djBio" My problem is that it's only adding the class to the first div.djBio, not all divs with that class. Here's the code. I am also using the fancy letter jquery plugin to add the drop cap to the first paragraph (which also is on...

Web page for IPhone - Large fonts instead of scrolling?

I'm planning the layout of my web page, which should also be usable on the IPhone. I don't really have much experience with the IPhone yet - I just installed the IPhone Simulator on my Mac. The page's contents are flexible, so I think it would be better to use this flexibility to avoid that the user has to scroll around the entire page....

How do information bars work, like the one appearing in stackoverflow when you win a badge?

When you win a badge in this page a bar with information appears on top. I think is jquery but anybody knows all the code and the implementation? Thank. ...

Position Div using Javascript on page refresh

Hi all I have a div that I would like to reposition each time the page is refreshed. It is currently set in the css using top and left. I wold like to pass the top and left values on page refresh. #inneriframe { position:absolute; top:-170px; left:-5px; width:1280px; height:1200px; } The content is from another site and contained in...

CSS Positioning

Trying to mess with this wordpress theme and can't figure out why the sidebar is stacking underneath the content block. Any help would be very appreciated. http://www.buffalostreetbooks.com/events CSS: body { font-family: Arial, Helvetica, Verdana, Sans-serif; font-size: 10pt; background-color: #692022; background-image...

Space Stuck between two Div Tags

I've been working on a small blog form but have been having trouble with my Div tags. Whenever I create a second div tag to hold the Form a space has appeared between it and the previous Div tag. Is there anything wrong with my CSS? body { background-image: url(../images/body-bg.jpg); font-family: arial; } #header { background-image...

Alternate play / pause button for WordPress wpaudio soundmanager plugin

Hello! I am using the wpaudio plugin to convert mp3 links into a javascript/flash audio player. My problem is that I use this plugin in two areas on my site: one on a black background, and one on a white background. I need to use an alternate set of play/pause buttons for each page (white buttons for the black background and vice versa)...

PHP gallery, thumbnail listing

Hi everyone, I am planning a dynamic PHP photo gallery and having difficulty deciding on the best way to display the thumbnails after they have been retrieved via MySQL. I considered using an inline unordered list but this resulted in the thumbs being stacked one on top of the other (touching). Also tried a table but not sure how I woul...

jQuery Sortable + Droppable z-index problem

I am having a probelm with the z-index of my sortable object not being above my droppable. If you visit http://clareshilland.unknowndomain.co.uk/. Press Ctrl + L to bring up the login screen. Enter the username clare and the password shilland. It will then load in the admin bar and if you click manage gallery. A pop down thumbnail view...