You are currently viewing the BOOK Beginning CSS: Cascading Style Sheets for Web Design, 2nd Ed; ISBN: 978-0-470-09697-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I am new to the web design community. I am in the process of teaching myself with the help of (Beginning CSS 2nd edition). I have completed the code for Example ll-2 but nothing is displayed but text. The chapter is on relative and absolute positioning; is there some kind of hack I need? I have double and tripled checked my code and even opened the authors work with no success. can someone help please.
Walk me through what you're doing step-by-step. What program are you using to create the files? How are you saving the files (what file name)? What browser are you using to preview your work? Have you turned on file extensions in your OS? When you load a file into your browser, what do you see in the address bar?
I am using HTML-Kit with IE 8. The filse are saved with the .htm extension. In the tool bar (C:\Users\jkendrick\Desktop\CSS book\Example_11-2.htm).
I am not sure if I turned on my file extensions.
Pages 14 and 15 have instructions for turning on file extensions. If you aren't sure that you turned on file extensions, you may actually be making files with names like "Example_11-2.html.txt", which would cause text instead of rendered output.
After posting back and forwards i decided today to try the excersize over which i did in notepad. i guess html-kit was kind of quirky yesterday. Doing the excersize in notepad worked out for me. Thanks for your help.
I have been working with your book, I have come across some bugs with these programs IE8 and with windows 7, or shall I say I am not sure. I am also using Microsoft Expression Web 3 as my text editor and posting. I have a basic understanding of web design but not an expert either. I am going through Chapter 11 doing the exercises and was doing the example before the summary, with Headers, footers, content, and left columm. Here is my Style sheet code too, also including the css code for IE6. along with the HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>test_1</title>
<link rel="stylesheet" type="text/css" href="test_1.css"/>
<!--[if]t IE 6]>
<link rel="stylesheet" type="text/css" href="test_1.ie.css"/>
<![endif]-->
</head>
<body>
<div id="heading">
<h1>Heading</h1>
</div>
<div id="container">
<div id="left">
Left Side Column.
</div>
<div id="content">
<h1>Lorem Ipsum</h1>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec eu
massa. Phasellus est eros, malesuada vel, tempus quis, pharetra at,
lacus. Ut sit amet libero. Aliquam erat volutpat. Morbi erat. Nunc et
purus vitae tortor sodales auctor. Nulla molestie. Pellentesque ante
mauris, tristique ac, placerat sit amet, placerat nec, ante. Vestibulum
interdum. Donec vitae tellus. Aliquam erat volutpat. Aenean dictum
dolor ut sem.
</p>
<p>
Ut commodo. Sed non nisi at leo aliquet lobortis. Donec a elit vel
nulla pharetra dignissim. Lorem ipsum dolor sit amet, consectetuer adipiscing
elit. Aliquam cursus tortor eget diam. Pellentesque pellentesque turpis
sed erat. Duis non libero vel metus sollicitudin aliquet. Aenean neque. Nunc
eget quam a mauris vulputate laoreet. Mauris dictum, eros venenatis fringilla
vehicula, tortor augue dignissim ante, id imperdiet risus sapien at odio. Praesent
ligula magna, nonummy vitae, facilisis at, fermentum non, diam. Integer sit
amet ligula quis lectus bibendum porta. Aliquam neque ipsum, aliquet et, semper
vel, blandit ac, massa. Etiam porttitor justo id arcu. Ut ante lacus, rutrum id,
vehicula non, faucibus in, lorem. Integer eu ante ut mauris rhoncus molestie.
Aenean ut est et lectus tempor pharetra. Fusce sed nibh. Class aptent taciti
sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos.
</p>
</div>
</div>
<div id="footer">
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec eu massa. Phasellus
est eros, malesuada vel, tempus quis, pharetra at, lacus.
</p>
</div>
</body>
</html>
==================================================
When I look at the code in IE8 it is all jumbled together. There is something I am doing wrong but then again I am new to this and well see what you think.
I took a look at this in IE8 (both with and without compatibility view), Firefox, Opera, Safari and Chrome on Vista. they all showing the same result, and all looked correct.
The code you posted checks out fine, which makes it difficult to tell why it isn't working for you. Can you give us a link to the website where you see it jumbled, or post it online if it's not already? That will let us take a look and compare if we're seeing the same thing you are.
__________________
-------------------------
Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe
When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper
Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.