Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
when i insert a div tag around a column of text, the div box goes all the way right
Old 09-03-2008, 12:01 PM when i insert a div tag around a column of text, the div box goes all the way right
Webmaster Talker

Posts: 611
Trades: 0
when i insert a div tag in dreamweaver, around a column of text, the div box goes all the way right, making a huge horizontal box instead of wrapping around my text. any help greatly appreciated. thanks. derek

here is the code dreamweaver produced. instead of wrapping around the text, it creates a huge square div.

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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<div>
  <p>asdfasdf</p>
  <p>asdfasdf</p>
  <p>asdfasdf</p>
  <p>sadfasdf</p>
  <p>asdfasdf</p>
  <p>asfsdaf</p>
  <p>asdfasd</p>
</div>
<p>&nbsp; </p>
</body>
</html>
i fixed it using this, but id rather have dreamweaver do it so i can easily make it into a css
Code:
v class="leftbox" style="width:8%;float:left">

Last edited by silverglade; 09-03-2008 at 01:26 PM..
silverglade is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-03-2008, 02:11 PM Re: when i insert a div tag around a column of text, the div box goes all the way ri
Webmaster Talker

Posts: 611
Trades: 0
ok i fixed it. heres the fix. you make your div into a css, then in the box selector, you click the alignment you want etc. and for the width you select "auto". this causes the box to wrap around the element you want. WOOT> problem solved. i hope this helps anyone else. derek
silverglade is offline
Reply With Quote
View Public Profile
 
Old 09-03-2008, 02:43 PM Re: when i insert a div tag around a column of text, the div box goes all the way ri
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Only if they're allowing DW to write their code for them
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to when i insert a div tag around a column of text, the div box goes all the way right
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24143 seconds with 12 queries