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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can ANYONE fix my html... because html hates me!

    thanks, I figured it out
    Last edited by alizabeth33; 09-13-2007 at 09:26 PM.

  • #2
    Senior Coder ahallicks's Avatar
    Join Date
    May 2006
    Location
    Lancaster, UK
    Posts
    1,134
    Thanks
    1
    Thanked 57 Times in 55 Posts
    WOAH!

    Are you serious about web design? If so, don't EVER do that again! And by that I mean shove a load of images into Dreamweaver and let it code it for you. It will do it wrong, and create a load of code you don't need with no semantics whatsoever.

    To start with, position fixed (which is used incorrectly by IE anyway) will 'fix' something in the position you put it on the screen so that if you scroll the window that element will always look to be in the same place, 'floating' above everything else. However, this only works when it is placed on the body tag in IE.

    You should be using floats, padding and margins to get your page looking as you want it to. A nice little layout example would look like this:

    Code:
    <!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>Simple Div Layout</title>
    <style type="text/css">
    * {
    	padding: 0;
    	margin: 0;
    }
    
    html {
    	color: #FFFFFF;
    	background: #CCCCCC;
    	font: 11px Tahoma, Verdana, Arial, "times New Roman", sans-serif;
    }
    
    #wrapper {
    	width: 766px;
    	height: auto;
    	margin: 10px auto;
    	overflow: hidden;
    }
    
    #header {
    	width: 766px;
    	height: 100px;
    	background: #990000;
    	margin-bottom: 10px;
    }
    
    #leftnav {
    	width: 250px;
    	height: 500px;
    	background: #990000;
    	float: left;
    	margin-right: 10px;
    }
    
    #content {
    	width: 506px;
    	height: 500px;
    	background: #990000;
    	float: left;
    }
    
    #footer {
    	width: 766px;
    	height: 80px;
    	float: left;
    	background: #990000;
    	margin-top: 10px;
    }
    
    </style>
    	
    </head>
    
    <body>
    
    	<div id="wrapper">
    		
    		<div id="header">
    			A Header
    		</div>
    		
    		<div id="leftnav">
    			Navigation
    		</div>
    		
    		<div id="content">
    			Content
    		</div>
    		
    		<div id="footer">
    			Footer
    		</div>
    	
    	</div>
    </body>
    </html>
    Now, I presume that you have designed a site in Photoshop and would like to put it on the web? The best way to do this is to slice it up into sections, save any background-images you want and then use code to display them on the web. I really don't know what stage you are at in your coding so I would also suggest that you go off and search the web for some tutorials on creating CSS based layouts from scratch and see what you find. There are some useful links here.

    One thing we are not going to do is build your site for you. If you have a specific problem then post it. If you would like your site built for you there are other forums here that might be of more help!

    Good luck

    Edit: HTML doesn't hate you by the way, it hates Dreamweavers automated, dirty, horrible, disgusting (*spits*) code
    Last edited by ahallicks; 09-13-2007 at 02:20 PM.
    "write it for FireFox then hack it for IE."
    Quote Originally Posted by Mhtml View Post
    Domains are like women - all the good ones are taken unless you want one from some foreign country.
    Reputation is your friend

    Development & SEO Tools

  • #3
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Im not serious about web design, I just need to design a site for my business asap. I have no time to learn about css or dreamweaver or html, I am just try to use what I learned in college!

  • #4
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Perhaps you're best off hiring one to do it then? You can get it done in a few hours and most people don't charge a lot for it.
    .
    .


  •  

    Posting Permissions

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