Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 7th, 2015, 08:32 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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:

Quote:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<style>
.box {
height:200px;
width:200px;
display:inline-block
}
</style>
</head>
<body>
<div class="box" style="background:red"/>
<div id="middleBox" class="box" style="background:green"/>
<div id="lastBox" class="box" style="background:blue"/>
</body>
</html>
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 08:34 PM. Reason: found it!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 03: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 07:20 AM



All times are GMT -4. The time now is 04:48 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.