Fitness.com
Advertisement

Go Back   Sports Forum > Community > Graphics > General Photoshop Board

General Photoshop Board

Topics cover anything to do with Photoshop outside of those forums below.


» Site Navigation
 > Shop
» Current Poll
Best 5 club teams in history of Football:
Liverpool 1977-1978 - 100.00%
1 Vote
Real Madrid 1956-1960 - 0%
0 Votes
Juventus 1985 - 0%
0 Votes
Milan 1989-1990 - 100.00%
1 Vote
Ajax 1971-1973 - 0%
0 Votes
Santos 1962-1963 - 0%
0 Votes
Torinho 1940's - 100.00%
1 Vote
Ajax 1995 - 0%
0 Votes
Flamengo 1981 - 100.00%
1 Vote
Benfica 1961-1962 - 100.00%
1 Vote
Total Votes: 1
You may not vote on this poll.
» Stats
Members: 103,412
Threads: 84,986
Posts: 1,031,253
Top Poster: Karky (9,546)
Welcome to our newest member, LoraHup
» Fitness Shop
If you register for free, you will be able to post threads, vote on polls and lots more. If you have problems with the registration or logging in, please contact the administrator.

Reply
 
LinkBack Thread Tools Display Modes
Old 05-27-2005, 03:59 PM   problems coding a layout using divs Post #1
Guest
 
Posts: n/a
Default problems coding a layout using divs

I made a layout in photoshop and manually sliced it but after previewing the layout it isn't positioned right and when I try typing int the content area it makes it even worse

Basically I want the middle area and the middle area(under the What's new part) able so I can can write in those areas , but I really don't want to use Iframes

here's the code I'm using at the moment

Code:
<html>
<head>
<title>layout</title>
<style type="text/css">

body 
{ margin-top: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

#header {
  margin: 0px;
  padding: 0px;
  height: 183px;
}
#left {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 750px;
}
#center {
  top:;
  margin-left: 0px;
  margin-right: 0px;
}
#right {
  position: absolute;
  right: 138px;
  top: 180px;
  width: 750px;
}
#bottom {
  position: absolute;
  right: px;
  bottom: px;
  width: 750px;
</style>
</head>
<body>
<div id="header">
<div align="center"><img src="1top copy.jpg " width="750" height="50" alt=">
<div align="center"><img src="2banner copy.jpg " width="750" height="88" alt=">
<div align="center"><img src="3topcontent.jpg " width="750" height="45" alt=">
</div>
<div id="left">
<div align="left"><img src="4leftnavi copy.jpg " width="118" height="235" alt=">
</div>
<div id="center">
My layout duh. jsut testing and it looks like  theres problems
</div>
<div id="right">
<div align="right"><img src="5rightside copy.jpg " width="128" height="221" alt=">
</div>
<div id="bottom">
<div align="center"><img src="6bottomcopyright copy.jpg " width="750" height="43" alt=">
<div align="center"><img src="7bottom copy.jpg " width="750" height="51" alt=">
</div>
</body>
</html>

any help will be greatly appreciated
  Reply With Quote
Old 05-28-2005, 12:18 AM   problems coding a layout using divs Post #2
Guest
 
Posts: n/a
Default problems coding a layout using divs

To be honest, you've got a lot of problems with that code. A LOT.

Here's some changes to make:

Tags such as <div> tags should have closing tags as well. Right now I'm counting 12 opening tags and only 4 closing tags. This will screw ANY layout up beyond repair.

Change your style for the "body" tag to this:

Code:
body { 
  margin: 0;
  padding: 0;
}
Make sure to use a closing bracket after your #bottom DIV declaration.

Back to the HTML, make sure that you close all attributes with TWO quotes. Your alt attributes in your images are missing that closing quote.

Fix those issues, and we can start to deal with the rest of the code.
  Reply With Quote
Old 05-28-2005, 12:41 AM   problems coding a layout using divs Post #3
Guest
 
Posts: n/a
Default problems coding a layout using divs

Sorry for all the errors , I've been dabbling in html and css only for a few weeks and I'm still trying to wrapp my head around it , friends tell me I should use Dreamweaver , but it's too complex for me guess I'm pretty dim lol . thanks for pointing out the erros and trying to help me with this , other places I've been simply ignored my asking for help , lol

here's the revision

Code:
<html>
<head>
<title>Three Column CSS Layout with Header</title>
<style type="text/css">

body 
body {
  margin: 0;
  padding: 0;
}
#header {
  margin: 0px;
  padding: 0px;
  height: 183px;
}
#left {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 750px;
}
#center {
  top: ;
  margin-left: 0px;
  margin-right: 0px;
}
#right {
  position: absolute;
  right: 138px;
  top: 180px;
  width: 750px;
}
#bottom {
  position: absolute;
  right: px;
  bottom: px;
  width: 750px;
}
</style>
</head>
<body>
<div id="header">
<div align="center"><img src="1top copy.jpg " width="750" height="50" alt="">
</div>
<div align="center"><img src="2banner copy.jpg " width="750" height="88" alt="">
</div>
<div align="center"><img src="3topcontent.jpg " width="750" height="45" alt="">
</div>
<div id="left">
<div align="left"><img src="4leftnavi copy.jpg " width="118" height="235" alt="">
</div>
<div id="center">
My layout duh. just testing and it looks like  theres problems
</div>
<div id="right">
<div align="right"><img src="5rightside copy.jpg " width="128" height="221" alt="">
</div>
<div id="bottom">
<div align="center"><img src="6bottomcopyright copy.jpg " width="750" height="43" alt="">
</div>
<div align="center"><img src="7bottom copy.jpg " width="750" height="51" alt="">
</div>
</body>
</html>
  Reply With Quote
Old 05-28-2005, 02:03 AM   problems coding a layout using divs Post #4
Guest
 
Posts: n/a
Default problems coding a layout using divs

So if you aren't using Dreamweaver, what are you using?

To clean up your CSS a bit, you are going to want to make sure that all your attributes are in this form:

attribute: value;

For example, attached to your "center" div, you have this statement:

Code:
  top: ;
Make sure that you have a value in there for top, even if it is 0. It should look like this:

Code:
  top: 0;
The same goes for your "bottom" div. There you have a measurement of "px," but no value to tell the browser how many px it needs to be. If you are leaving the lines blank like that, it's better to delete them then anything else.

You're also still missing 5 closing <div> tags in there, which will mess up your code. EVERY <div> tag needs a closing tag so your browser knows where to begin or end the others.

Try looking at the source on this page on my site. It's a pretty simply coded page, so hopefully you'll be able to follow it. Every div has a matching end tag that is lined up with it, even where the divs are nested.

I would also STRONGLY recommend working through some tutorials on web design, like the ones over at www.echoecho.com or www.w3schools.com . That will help you out a lot.
  Reply With Quote
Old 05-28-2005, 04:24 AM   problems coding a layout using divs Post #5
Guest
 
Posts: n/a
Default problems coding a layout using divs

sorry again thought I fixed everything. To answer your question , I'm currently using notepad. I have Dreamweaver but have chose to set it aside for the time being because it gave me a headache. I've been going through both of those sites slowly and reading through each lesson . thought it might be a good idea to show you the layout I'm trying to get to work.
http://img209.echo.cx/img209/4140/firstlayout7yw.jpg

thanks again for the help

Code:
<html>
<head>
<title>Three Column CSS Layout with Header</title>
<style type="text/css">

body 
body {
 padding: 2;
}
#header {
 height: 183px;
}
#left {
  position: absolute;
  width: 750px;
}
#center {
  margin-left: 5px;
  margin-right: 5px;
}
#right {
  position: absolute;
  right: 138px;
  top: 180px;
  width: 750px;
}
#bottom {
  position: absolute;
  width: 750px;
}
</style>
</head>
<body>
<div id="header">
<div align="center"><img src="1top copy.jpg " width="750" height="50" alt="">
</div>
<div align="center"><img src="2banner copy.jpg " width="750" height="88" alt="">
</div>
<div align="center"><img src="3topcontent.jpg " width="750" height="45" alt="">
</div>
</div>
<div id="left">
<div align="left"><img src="4leftnavi copy.jpg " width="118" height="235" alt="">
</div>
</div>
<div id="center">
My layout duh. just testing and it looks like  theres problems
</div>
</div>
<div id="right">
<div align="right"><img src="5rightside copy.jpg " width="128" height="221" alt="">
</div>
</div>
<div id="bottom">
<div align="center"><img src="6bottomcopyright copy.jpg " width="750" height="43" alt="">
</div>
</div>
<div align="center"><img src="7bottom copy.jpg " width="750" height="51" alt="">
</div>
</div>
</body>
</html>

think I closed all the dis this time
  Reply With Quote
Old 05-28-2005, 06:22 AM   problems coding a layout using divs Post #6
Guest
 
Posts: n/a
Default problems coding a layout using divs

You can use Dreamweaver - just set it to "code" view. The color coding and autoformatting features will really help you in both reading and writing your code. That's what I use, and it works very well.

Have you looked at this site for some sample CSS layouts:

http://www.thenoodleincident.com/tut...son/boxes.html

ps... now you have too many closing tags. 12 opening and 14 closing. You are going to have to get that stuff right before we can get the divs in the right places.
  Reply With Quote
Old 05-28-2005, 06:31 AM   problems coding a layout using divs Post #7
Guest
 
Posts: n/a
Default problems coding a layout using divs

didn't know you couyld use dreamweaver for jsut god I thought it was jsut for graphical layout and it did the coding for you.

I'll check out that site.

just so I get this right this time

is this the way the divs are supposed to be


Code:
<div id="bottom">
<div align="center"><img src="6bottomcopyright copy.jpg " width="750" height="43" alt="">
</div>
</div>
do I put a </div> at the end of the <div id=""> sections only or do I out one there and at the end of the <div align="">
  Reply With Quote
Old 05-28-2005, 02:44 PM   problems coding a layout using divs Post #8
Guest
 
Posts: n/a
Default problems coding a layout using divs

Quote:
Originally Posted by dochappy
Code:
<div id="bottom">
<div align="center"><img src="6bottomcopyright copy.jpg " width="750" height="43" alt="">
</div>
</div>
do I put a </div> at the end of the <div id=""> sections only or do I out one there and at the end of the <div align="">
That all depends on how you want the page to look! The way you have it in that example, you'll have a box inside another box. If you wanted two completely separate boxes, then you'd have something like this:

Code:
<div id="bottom">
</div>
<div align="center">
   <img src="6bottomcopyright copy.jpg " width="750" height="43" alt="">
</div>
... which I don't think is what you are going for. (But yes, both ways are completely valid ways of coding.)
  Reply With Quote
Old 05-28-2005, 09:35 PM   problems coding a layout using divs Post #9
Guest
 
Posts: n/a
Default problems coding a layout using divs

opened the file in dreamweaver and cleared the tags it said were not needed , hopefully I did this right

Code:
<html>
<head>
<title>Three Column CSS Layout with Header</title>
<style type="text/css">

body 
body {
 padding: 2;
}
#header {
 height: 183px;
}
#left {
  position: absolute;
  width: 750px;
}
#center {
  margin-left: 5px;
  margin-right: 5px;
}
#right {
  position: absolute;
  right: 138px;
  top: 180px;
  width: 750px;
}
#bottom {
  position: absolute;
  width: 750px;
}
</style>
</head>
<body>
<div id="header">
<img src="1top copy.jpg " width="750" height="50" alt="">
<img src="2banner copy.jpg " width="750" height="88" alt="">
<img src="3topcontent.jpg " width="750" height="45" alt="">
</div>
<div id="left">
<img src="4leftnavi copy.jpg " width="118" height="235" alt=""> 
</div>
<div id="center">
My layout duh. just testing and it looks like  theres problems
</div>
<div id="right">
<img src="5rightside copy.jpg " width="128" height="221" alt=""> 
</div>
<div id="bottom">
<img src="6bottomcopyright copy.jpg " width="750" height="43" alt="">
<img src="7bottom copy.jpg " width="750" height="51" alt=""> 
</div>
</body>
</html>
  Reply With Quote
Old 05-28-2005, 10:35 PM   problems coding a layout using divs Post #10
Guest
 
Posts: n/a
Default problems coding a layout using divs

Well, the HTML should be able to work now - now you can start to work on the CSS.

The links that I've given you before should be able to help you out with that.
  Reply With Quote
Reply

Go Back   Sports Forum > Community > Graphics > General Photoshop Board

Bookmarks

Thread Tools
Display Modes


Similar threads to problems coding a layout using divs
Thread Thread Starter Forum Replies Last Post
XML coding for moving team name across in Match Screens
XML coding for moving team name across in Match Screens: Guys - in FM07 - I want to move the team name...
Worcester City Researcher Skinning Hideout 0 01-07-2008 12:18 AM
XML, Coding Skins.
XML, Coding Skins.: Need some help in this field as i have not one...
MeekoHFC Skinning Hideout 0 12-10-2007 01:06 AM
Web Design & Coding Needed
Web Design & Coding Needed: Hi, I'm looking for someone to design a page...
Josh7 General Photoshop Board 3 06-13-2007 09:48 PM
Region Coding for XBOX 360
Region Coding for XBOX 360: I am living and working in Japan at the moment,...
AustSaint Football Manager 3 11-10-2006 12:57 PM
Old to coding, new to Photoshop
Old to coding, new to Photoshop: Hi there First off, let me say that this...
danfowler General Photoshop Board 4 09-19-2005 03:41 PM

More threads of dochappy
Thread Date Forum Replies Last Post
Converting Photoshop brushes
Converting Photoshop brushes: I just download several brushes and now I find...
01-17-2006 General Photoshop Board 0 01-17-2006 03:39 AM
Converting 24 bit pngs to 32 bit pngs
Converting 24 bit pngs to 32 bit pngs: I'm working ona side project witha friend ,...
07-08-2005 General Photoshop Board 0 07-08-2005 08:07 AM
So many ways to extract but none work that well ??
So many ways to extract but none work that well ??: I've been readin up on methods of extracting...
08-18-2003 General Photoshop Board 10 08-20-2003 11:06 PM
How to make notebook paper
How to make notebook paper: This is my way to make notebook paper.. I thought...
09-15-2002 General Photoshop Board 6 10-05-2002 11:43 PM
Channel Selection
Channel Selection: I don't know if anyone knows this already or not...
08-30-2002 General Photoshop Board 1 08-30-2002 03:55 AM

Other threads in forum General Photoshop Board
Thread Date Thread Starter Replies Last Post
Styles for lines and boxes
Styles for lines and boxes: Hi, I'm new here (I'm german, but I hope you can...
08-28-2006 imported_GZ_CrazyCrusher 5 10-12-2006 08:08 PM
swfc990 Entry 1
swfc990 Entry 1: i wanted to have a go at this but i was...
07-23-2006 swfc990 5 07-31-2006 01:40 AM
I'm new
I'm new: i'm a newbee so please go easy on me ok....i will...
06-19-2003 vozizm 15 06-24-2003 04:03 PM
Brushes etc
Brushes etc: Hi Im using Photoshop 5.5 on a Mac platform...
05-26-2003 len 4 05-26-2003 11:11 PM
Error Message
Error Message: I'm getting an error message 'could not write the...
03-21-2002 slandry 8 03-23-2002 10:03 AM

» Online Users: 36
0 members and 36 guests
No Members online
Most users ever online was 2,128, 07-21-2008 at 08:27 PM.

All times are GMT +1. The time now is 05:38 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Fitness.com | Weight Loss | Training & Fitness | BodyBuilding | Chinese | Spanish | French | Germany | Italian | Friend Codes |
You are viewing problems coding a layout using divs.