View Full Version : Correct div formatting
dqharfhf387
03-06-2008, 01:50 PM
Hi this is my code, is it correct? If it isnt can you help me fix it? How do i add content to the divs? Like embedding an animation into the footer div or adding text to the content div. Where should i specify these codes? In the <head> or <body>?
<html>
<head>
<title>"test"</title)
</head>
<body style = "css">
<div id = "Nav" style = "position; absolute; width: 100px; height: 240px; top: 0px; left: 0px;">
Nav
</div>
<div id = "Logo" style = "position"; absolute; width: 300px; height: 480px; top: 0px; left: 0px;">
Logo
</div>
<div id = "content" style = "position"; absolute; width: 700px; height: 480px; top: 0px; left: 0px;">
content
</div>
<div id = "Footer" style = "position"; absolute; width: 1000px; height: 240px; top: 0px; left: 0px;">
Footer
</div>
</body>
<html>
boogyman
03-06-2008, 10:02 PM
from the name and join date I am going to assume this is possibly a bot, however in the spirit of being nice I will answer the question
type in whatever you want next to the "content" tag and you will see that it appears next to the content.
researching into flash objects on google to embed an animated script into a section of the page
dqharfhf387
03-07-2008, 02:29 PM
Thanks, this isnt a bot i just used this name for security purposes. Where do i place the codes in the <body>? or <head>?
dqharfhf387
03-07-2008, 02:33 PM
from the name and join date I am going to assume this is possibly a bot, however in the spirit of being nice I will answer the question
type in whatever you want next to the "content" tag and you will see that it appears next to the content.
researching into flash objects on google to embed an animated script into a section of the page
Thanks this isnt a bot. So I can place anything after the content, nav, etc tag and it will show in that particular div?
<html>
<head>
<title>"test"</title)
</head>
<body style = "css">
<div id = "Nav" style = "position; absolute; width: 100px; height: 240px; top: 0px; left: 0px;">
Nav
<p> Testing </p>
</div>
Like that?
boogyman
03-07-2008, 04:11 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>__APPEARS_IN_TITLEBAR__</title>
</head>
<body>
<div id = "Nav" style = "position: absolute; width: 100px; height: 240px; top: 0px; left: 0px;">
Nav
</div>
<div id = "Logo" style = "position: absolute; width: 300px; height: 480px; top: 0px; left: 0px;">
Logo
</div>
<div id = "content" style = "position: absolute; width: 700px; height: 480px; top: 0px; left: 0px;">
content
<p>OTHER CONTENT</p>
<div>YET OTHER CONTENT</div>
<ul>
<li>LIST ITEM</li>
<li>LIST ITEM</li>
<li>LIST ITEM</li>
<li>LIST ITEM</li>
<li>LIST ITEM</li>
<li>LIST ITEM</li>
</ul>
</div>
<div id = "Footer" style = "position; absolute; width: 1000px; height: 240px; top: 0px; left: 0px;">
Footer
</div>
</body>
<html>
Attached is how a site with ^^ as its html code will show up.
before you to dive into positioning, try to make sure you get the content inserted... after you get the content inserted, then go back and look into the styling of the page layout.
dqharfhf387
03-08-2008, 03:08 AM
Now I get it, thanks a lot for the help, ill just create the layout graphics and insert them, I may have a few more questions on making forms invisible so three topic can be viewed in the same page, and how to insert iframes and such, would it be alright if i email you or should i just post the questions in this forum?
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.