In the spirit of getting the CSS quizzes back on track, perhaps some ideas can be posted in this thread.
Ideas/layouts thought to be impossible (even if it wasn’t working in a lone browser). Give any and all suggestions you can think of, even if you don’t know if a solution is found for it already :).
A bottom aligned float in a fluid height container, it has never been accomplished across all modern browsers.
We all know there is not a bottom value for floats but we have dubbed this attempt as “float bottom”. I have spent many hours on this myself and I have finally given up on it.
What’s needed is a child element that can set it’s height to 100% of the parents unknown/fluid height. That’s how the scripted versions work.
In the code below: Paul O’B had got close using display:table, but it only works in FF3+.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Float bottom in Firfefox 3+ only</title>
<style type="text/css">
h1 {
text-align: center;
}
#wrap {
width: 50%;
height: 1px;
display: table;
margin: 0 auto;
padding: 0 0 0 5px;
border: 2px solid #000;
background: #EEF;
text-align: justify;
}
.push {
float: right;
display: table;
width: 2px;
height: 100%;
background: red;
margin-bottom: -115px;
}
.float {
float: right;
clear: right;
width: 100px;
height: 100px;
margin: 10px 0 10px 10px;
background: lime;
}
p {
margin: 0;
padding: 5px;
line-height: 1.5;
}
</style>
</head>
<body>
<h1>Float bottom in Firfefox 3+ only</h1>
<div id="wrap">
<div class="push"></div><div class="float">Float</div>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec nisl metus, vehicula id, tincidunt at,
aliquet et, sem. Duis pretium justo. Aenean tortor lectus, laoreet et, fermentum quis, volutpat nec, tortor.
Integer et velit in mi viverra sagittis. Cras vitae massa. Praesent porttitor. Cum sociis natoque penatibus
et magnis dis parturient montes, nascetur ridiculus mus. Aliquam diam magna, faucibus et, tempus in, viverra
nec, eros. Sed egestas. Mauris adipiscing urna ut nulla. Pellentesque habitant morbi tristique senectus et
netus et malesuada fames ac turpis egestas. Cras pharetra accumsan magna. Integer iaculis. Suspendisse potenti.
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Proin odio eros, eleifend
ac, rutrum eget, ullamcorper a, sem. Vestibulum quis magna. Nullam vulputate massa non massa. Fusce lectus
ipsum, placerat vitae, hendrerit nec, interdum eu, odio. Nullam id tortor.</p>
</div>
</body>
</html>
Flying? Teleportation (although visually, no)? Oh you meant code wise?
One thing I’d like to see is a hover effect where there are maybe 10-100 images stacked on top of each other. On hover, the top flies to the right, revealing the next which is then given the hover (at least, visually) and flies out to reveal the next one which gains the hover, etc. etc. etc.
One thing I’d like to see is a hover effect where there are maybe 10-100 images stacked on top of each other. On hover, the top flies to the right, revealing the next which is then given the hover (at least, visually) and flies out to reveal the next one which gains the hover, etc. etc. etc.
~TehYoyo
Interesting effect/idea :). Although everything would collapse again after hover is done.
PHP can interrogate $_SERVER[‘HTTP_USER_AGENT’] and generate a browser specific CSS file but CSS cannot detect which browser is being used (or simulated).
Yes, I should have specified that it’s not CSS that detects the browser, so I should just have mentioned @media queries for detecting viewport dimensions.
That demo was a continual hover effect Hover long enough and all the boxes fly out.
You can’t move an element out of the way by hovering on the element itself because as soon as it moves it its not hovered any more and takes its place back in the stack. All you get is a flicker effect.
You have to hover on a parent and then make the children move so that way the effect is constant as in my demo.
Transform the select element with its options into a horizontal menu. That is, make the list box entries “explode” into independent little options. Having anchors, preferably.
Much like what Google does on Google Translate with the “From” and “To” selects for languages, but it does it with JavaScript, as a progressive enhancement.
I mean, you can make something like this:
[highlight=‘html’]<!DOCTYPE html>
<html>
<head>
<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” />
<title>Untitled Document</title>
<style type=“text/css”> #sel{
background-color:#FF0;
width:40px;
} #sel optgroup{
background-color:#CFF;
display:table;
width:20px;
but you can't do so much more. You can play with inline-table and such, but it's a far cry from what a classic menu looks like. Nevermind the lack in behavior. Oh, and don't mention lists. I know...