Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 04-15-2011, 09:46 AM
Contributing Member
Latest Blog:
None

 
Join Date: 11-13-10
Posts: 57
iTrader: 0 / 0%
How can i place a div here?

http://tinypic.com/view.php?pic=2a0jkf8&s=7

The black box is where i would like the div to be placed, but it doesn't seem to want to go there, can anyone edit the code and show me how i can place the div exactly there?

html:

Code:
<html> <head> <link rel="stylesheet" type="text/css" href="css.css" > <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" /> <script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script> <script type="text/javascript" src="js/lightbox.js"></script> </head> <body> <div id="top"> <div id="banner"> <a href="home.html"><img src="Image/emancoleban.png" alt="banner"/></a> </div> </div> <div id="left"> </div> </body> </html> <!-- 000webhost.com ->
CSS
Code:
#images { width: 6000 px; height: 500 px; } #images ul{ margin: 0; padding: 0; float: left; } #images ul li{ display: inline; } body { margin: 0px; padding: 0px; height: 100%; width: 100%; } #left { height: 600px; width: 300px; } #top #banner { height: 80px; width: 400px; margin-left: 300px; margin-top: 60px; } #top { float: left; height: 100px; width: 1000px; }
Thanks..
 
Reply With Quote
  #2 (permalink)  
Old 04-15-2011, 10:06 AM
ScriptMan's Avatar
Super Moderator
 
Join Date: 02-10-07
Location: Central Kentucky
Posts: 10,257
iTrader: 4 / 100%
I can't write this stuff off the top of my head. I have to write and then see how it behaves, then modify until I get it right. Maybe I can get you started.

To the css file add a new div declaration where the X and Y in the example are modified to the numbers you want.

PHP Code:
#newdiv {
    
floatleft;
    
heightXpx;
    
widthYpx;

Then in your html add the part just above the closing body tag:
PHP Code:
<div id="left">

</
div>
<
div id="newdiv"> <!-- Opens the new div-->
add your script here

</div>  <!-- closes the new div-->
</
body
Now you may or may not have to clear some floats to make that work.
__________________
SEO does not mean Spam Everywhere Online
Scriptman's Playhouse || Ramblings from an old man
2013 resolution: Don't feed trolls
ScriptMan
 
Reply With Quote
  #3 (permalink)  
Old 04-15-2011, 10:24 AM
Contributing Member
Latest Blog:
None

 
Join Date: 11-13-10
Posts: 57
iTrader: 0 / 0%
Tried it before & didn't work.
Tried it again, same problem, just goes under div left.
 
Reply With Quote
  #4 (permalink)  
Old 04-15-2011, 01:50 PM
ScriptMan's Avatar
Super Moderator
 
Join Date: 02-10-07
Location: Central Kentucky
Posts: 10,257
iTrader: 4 / 100%
I did not do the math but the total of the two divs can not exceed the size of the container.

Next thing to try is to add:

PHP Code:
clear:both
as the first line of the newdiv declaration.
__________________
SEO does not mean Spam Everywhere Online
Scriptman's Playhouse || Ramblings from an old man
2013 resolution: Don't feed trolls
ScriptMan
 
Reply With Quote
  #5 (permalink)  
Old 04-16-2011, 06:27 AM
Contributing Member
Latest Blog:
None

 
Join Date: 11-13-10
Posts: 57
iTrader: 0 / 0%
Tried, same problem.
 
Reply With Quote
  #6 (permalink)  
Old 04-16-2011, 11:14 AM
ScriptMan's Avatar
Super Moderator
 
Join Date: 02-10-07
Location: Central Kentucky
Posts: 10,257
iTrader: 4 / 100%
I just copied your CSS file to play with this on localhost. Once the type was big enough to read I noticed that your image div is defined at 6000 px not 600. Correct that and see if it solves your problem.

I am going to copy your files to locahost anyway so that I have them
__________________
SEO does not mean Spam Everywhere Online
Scriptman's Playhouse || Ramblings from an old man
2013 resolution: Don't feed trolls
ScriptMan
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
where is this place websiteguy Forum Lobby 4 11-24-2009 09:25 PM
Best Place deceylon Marketing Forum 1 01-27-2009 01:08 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 07:33 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.