Wrox Programmer Forums
BOOK: HTML5, JavaScript and jQuery 24-Hour Trainer
This is the forum to discuss the Wrox book HTML5, JavaScript and jQuery 24-Hour Trainer by Dane Cameron; ISBN: 978-1-119-00116-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: HTML5, JavaScript and jQuery 24-Hour Trainer section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 7th, 2015, 09:32 PM
Registered User
Join Date: Mar 2015
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Wrong code?

Hi, first of all, let me say a BIG thank you, for writting this book, i'm reading it now, i'm starting to learn how to create websites, and i find the book extremelly helpfull, but here's my question:

In lesson 5, on page 101, there's this code for creating 3 boxes alongside eachother, but the thing is, that the boxes don't appear like the book, they sit on top of eachother and i only see the blue one... the code on the book is this:

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
.box {
<div class="box" style="background:red"/>
<div id="middleBox" class="box" style="background:green"/>
<div id="lastBox" class="box" style="background:blue"/>
what's wrong here? i'm using dreamweaver cs6 and notepad++ for coding

thanks ;)

EDIT: it's the "div's" that's wrong, it has to be "<div...></div>" :)

Last edited by overburnz; March 7th, 2015 at 09:34 PM.. Reason: found it!

Similar Threads
Thread Thread Starter Forum Replies Last Post
What's wrong with this code? napestershine BOOK: Beginning HTML, XHTML, CSS, and JavaScript 0 May 21st, 2014 08:52 AM
what is wrong in this code cancertropica ADO.NET 4 December 21st, 2008 04:08 AM
What's wrong with this code? AlDugan XSLT 3 May 19th, 2006 12:06 PM
What is wrong with code? rtr1900 Classic ASP Databases 1 April 3rd, 2006 03:20 AM
What is wrong with this code? SaharaWizard VB Databases Basics 2 January 28th, 2006 08:20 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.