Dear all,
I did this based on an idiom suggested in the "CSS Cookbook". The problematic example I'm struggling with is below. If, in Firefox, you try increasing the text font size, you will see that the left column starts to overlap the right one. Is there any way to make it so that the floating right column would shift itself rightwards, and the horizontal scrollbar would appear? I'm trying to get the same outcome as in
http://www.tyssendesign.com.au/artic...ical-examples/ This website manages to avoid overlaps completely (well, almost completely), but the same trick doesn't seem to work for me.
Many thanks in advance!
PS Trying hard to remain "tableless".
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Some title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
body { margin:0; padding:0; border-style:solid; border-width:1px; }
div#thematic_links { width:6%; margin:0; padding:0; border-style:solid; border-width:1px; }
div#thematic_links a { display:block; }
div#main_content { float:right; width:92%; border-style:solid; border-width:1px; margin:0; padding:0; border-style:solid; border-width:1px; }
div#main_content p { margin:0; padding:0; }
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
</style>
</head>
<body>
<div class="clearfix">
<div id="main_content">
<p>Obviously, any element that’s larger than the other elements in the same environment
stands out. This approach makes a page look more dynamic in its presentation, unlike
a page layout where all the elements are the same size.
So, when you want to call attention to an area of a web page, one way is to try using
an excessive type size.
In this example, the size of the font in “Hi.” has been set to 17 em. In the font-size
property, an em unit is equal to whatever is the font size of the container.
</p>
</div>
<div id="thematic_links">
<a href="1.html">Link#1</a>
<a href="2.html">Link#2</a>
<a href="3.html">Link#3</a>
<a href="4.html">Link#4</a>
</div>
</div>
</body>
</html>