Results 1 to 7 of 7

Thread: Controlling positioning of relative <div>'s?

  1. #1

    Thread Starter
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810
    What browser are you using?

    Looks fine in IE6.0
    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

  2. #2

    Thread Starter
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810
    Ok,

    Read your post again! You mean like three <td> tags in a <tr>!

    Well, you could use the <span> tag in place of the inner <div>s
    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

  3. #3
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Code:
    <div style="left: 125;width: 450;">
    This CSS is wrong and should be ignored by user agents that conform to the CSS spec - there's no unit specific, do you mean pixels, inches, kilometers, etc?

    Any way, look into the CSS float attribute (float:left;) and if it works make sure you specified the (clear:both;) on the block you want to "break" the float.

    And tables won't be depreciated, just used for the intended purpose, presenting tabular data like a speadsheet, rather than layout. And CSS3 will have column capabilities for layout, hopefully.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  4. #4
    Addicted Member
    Join Date
    Nov 2001
    Location
    Yewston, Texis
    Posts
    240
    Jerry Grant said:
    Read your post again! You mean like three <td> tags in a <tr>!

    Well, you could use the <span> tag in place of the inner <div>s
    Will a <span> allow an embedded <br>? I guess I'll give it a try!

    JoshT said:
    And tables won't be depreciated, just used for the intended purpose, presenting tabular data like a speadsheet, rather than layout. And CSS3 will have column capabilities for layout, hopefully.
    The problem with the current table spec is that you don't seem to have control over your border. It's either 3-d or nothing.

    Thanks

    cudabean

  5. #5
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Originally posted by Cudabean
    The problem with the current table spec is that you don't seem to have control over your border. It's either 3-d or nothing.
    [/B]
    I don't follow you.

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    	"http://www.w3.org/TR/html4/loose.dtd">
    			
    <html lang="en">
    <head>
    	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    	<title>Untitled</title>
    <style type="text/css" media="screen" title="Default">
    	table {
    		border: 20px inset;
    	}
    
    	th {
    		border : 2px dashed Blue;
    	}
    
    	td {
    		border: 5px solid Orange;
    	}
    </style>
    </head>
    
    <body>
    <table>
    <tr>
    	<th>Header</th>
    	<th>Header</th>
    </tr>
    <tr>
    	<td>Cell</td>
    	<td>Another Cell</td>
    </tr>
    </table>
    
    </body>
    </html>
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  6. #6
    Addicted Member
    Join Date
    Nov 2001
    Location
    Yewston, Texis
    Posts
    240
    Uhhh....
    Never-freakin'-mind.

    Thanks JoshT, I'm going back to tables.

    cudabean

  7. #7
    WALDO
    Guest
    <DIV>'s get positioned one atop another because that's how they are supposed to be. Imagine div tags like <P> tags without the space at the top & bottom. A div tag inherently forces a line break.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width