css

Get <p> text to fit in shrink-wrapped wrapper.

I'm trying to get the .copy below to shrink-wrap to the width of the image: HTML: <div class="post"> <img src="some/image.png" /> <div class="copy"> <p>Morbi dignissim leo a erat tristique eu faucibus dolor commodo. Cras scelerisque, est quis molestie tempus, ante sem fringilla ante, non convallis quam mi ac metus. Donec rhoncus...

position text on top just beside the image in html

I have an image and text beside it with this code. A sample can be seen here: The problem is that the text is starting from the center of the image (on the right side) whereas i want the text to start from the top right-hand side of the image. Here is my code: <table width="550"> <tr> <td> <div id="i1"> <img src="<? ...

A way to keep a link bold once selected (not the same as a:visited)

I am creating a 'FAQ' page which has a list of questions at the top (links) and the answers appear below. As each question is clicked the corresponding answer is shown (using show/hide divs). My questions is, is there a way to make the clicked question/link bold and for it to stay bold until another question is clicked, in which case t...

How to center the image with unknown size inside div?

So, I have the div with these parameters: container { position:fixed; background-color: rgba(50,50,50,0.7); width:100%; height:100%; display:none;} It contains the image with unknown size (the size is dinamic and it may be different). I need to align the image vertically and horizontally. Please, help ...

IE hiding text; should be simple... line-height issue?

I have a menu with each item a different font-size/height -- looks fine in everything but IE which cuts the items in half... Here's the HTML: <header> <div class="inside"> <h1><a href="#">Ballroom Rocks LOGO</a></h1> <nav> <ul> <li><a href="#home" class="nav" value="home" id="nav-home">Home</a></li> <li><a href="#thesho...

Is there a way to specify "initial" values in css shorthands like padding?

Say I have a complex stylesheet with lots of interacting styles etc. For a specific class, I want to override padding-top and padding-bottom, without changing the values of padding-left and padding-right (which might even be different things for different elements that get the class I'm specifying). Is there a way to do this with a sho...

cross browser href inside href?

i have css look like below ul.sometclass li a { display:inline-block; } my html look like <ul class="someclass"> <li> <a href="outertest.html">outer test <div style="display:inline; float:left;overflow: hidden;"> <a href="innertest.html"><div style="display:inline; float:left;">inner test</a> ...

CSS problem only in IE

Hi, I've created a web site www.qwik-facts.com which is being seen as I want it in chrome, firefox and safari. However, in IE it gets messed up. I know I should be more specific, but I just can't figure out what the problem is. Can someone take a look and point me in the right directon? Thanks! ...

resize content div + image on browser resize

What would be the best way to resize a content div to match the browser, keeping a white margin around it, whilst also resizing an image contained within it, so that it keeps a good aspect ratio? this is the effect i am looking to create: http://www.louisvuitton.com/ ...

IE specific: getting rid of scrollbars

I have two divs like this <div style="position:relative; width: 500px; overflow:auto"> <div style="position:absolute; top:0;left:0;width:100%"> </div> </div> Now the problem in IE is Scrollbars start to appear unnecessarily for the outer div. Even when i have specified the inner div's width to be 100% it extends more...

How to prevent a box with overflow-y: scroll from stealing the focus on tab on Firefox?

Consider a page with the following code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type=...

CSS override with second stylesheet

I'm working on a pretty large website that has a big stylesheet already on the website. We're working with this large corporation with limited ability to make changes (no full access). We'll be applying some new styles for a specific section on the website and we've been given the green light to include a second override stylesheet (in ...

why is my ub list disappearing. AGAIN

ok guys, u solved this so fast last time. i've altered my sub lists to display horizontally, but when i move off the parent <li>, my sub list disappears. http://www.mymediaventure.com/galleries.php. this happens on the Pricing and the Galleries tab. Last time it was a z-index issue with the <h1> being a higher value than the sub list, ...

cross browser hide mouse cursor

I would like to enhance a depth effect by hiding the mouse cursor as it passes over a div, is there a method that will work across all browsers? ...

Is it possible to give one CSS class priority over another?

Say I have a div that uses two css classes that both use text-align, but one is centered and the other is right aligned. Is it possible to specify something that will give one class priority over the other? ...

how to use liveview in dreamweaver cs5 and local xampp server

Hello, Can someone give me some insight on how to work with liveview locally. The problem I am having now is that liveview works ok with the remoteserver, but with xampp the css is a little distorted. I can't come up with an explanation. Can someone shed some light? Thanks, Richard ...

Computed column width is different than css declared width for column. How does browser decide width?

Let's say I have an html table with a css declared width of 750px. It has 5 columns and each column has a width of 50px, declared using css (all td's have a 50px width). Obviously, the sum of the columns' widths is 250px which is less than 750px. When the browser renders the table, each column has a different computed width. I have one...

float every other item in a definition list

Greetings all. I have a definition list like so: <dl> <dd>This is an item on a new line</dd> <dd class="float_even">This item should sit on a new line</dd> <dd class="float_odd">This item should float next to the previous item</dd> <dd class="float_even">This item should sit on a new line</dd> <dd class="float_odd">This item shoul...

jquery image fader, flash of unstyled content

www.mymediaventure.com i can't stop the images flashing up before they are put on top of each other and then the fader starts. at the moment, im setting display to none in an inline style attribute on all but the first image. then in the jquery im displaying all the images. but it loads the pictures then cycles through each without fa...

ie is stretching cached images loaded asynchronously

I am loading images via ajax on my website. They load in a container with a max-height of 600px. The images are set to have a height of 100%. They load in perfectly the first time but come out streteched very wide when stretched. .gallery { height: 600px; overflow: hidden; padding-left: 35px; } .gallery img { height: 100%; } here is ...