Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Apr 2006
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Best way to code somethin like this?

    What would be the best way to code somethin like this? Its going to be the contact page and I'm goin to float 2 images to the right

    kinda somethin like this http://www.eizo.com/contact/index.asp but was wondering if there is a better way to do it other than tables?

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    <div >
    <img src="" style="float:right"/>
    <img src="" style="float:right"/>
    ..................
    All the content goes here......
    ..........
    <br style="clear:both"/>
    </div>
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Good morning efhx,
    Not sure it's the best but...
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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>
    <style type="text/css">
    html, body {
    	background: #000;
    }
    * {
    	margin: 0;
    	padding: 0;
    	border: none;
    }
    #container {
    	width: 760px;
    	margin: 0 auto;
    	overflow: auto;
    	background: #000;
    	border-top: 5px solid #fff;
    	border-right: 20px solid #fff;
    	border-bottom: 5px solid #fff;
    	border-left: 5px solid #fff;
    }
    .title {
    margin: 5px 0 0 0;
    	background: #FFCC00;
    clear: both;
    }
    .column {
    	width: 300px;
    	float: left;
    	background: #000;
    	color: #fff;
    }
    .box {
    	float: right;
    	width: 400px;
    	height: 150px;
    	margin: 5px 5px 0 5px;
    	background: #fff;
    	border: 1px solid #000000;
    }
    </style>
    </head>
    <body>
        <div id="container">
        		<div class="title"><h3>Lorem Ipsum</h3></div>
            <div class="column">
            <p>
                Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna 
                aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no 
                sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam 
                nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo 
                duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
            </p>
            <!--end .column--></div>
        		<div class="box"></div>    
        			<div class="box"></div>
        		<div class="title"><h3>Lorem Ipsum</h3></div>
        <!--end container--></div>
    </body>
    </html>
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #4
    New Coder
    Join Date
    Apr 2006
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks and is a dropdown menu in css possible that will work in all major browsers? or is it just better to do it in another language?

  • #5
    New Coder
    Join Date
    Jan 2008
    Posts
    42
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Umm yeah it's possible to do it with CSS so that it works in all Browsers... search for Suckerfish Dropdowns.


  •  

    Posting Permissions

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