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
Help! Trying to abandond table layout, having trouble
Old 01-17-2007, 11:56 PM Help! Trying to abandond table layout, having trouble
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Hi,

I'm an ASP.NET programmer, and know a good deal about html/css, but apparently not enough. I'm also a photographer when I have the time, purely a hobby ... at least a this point. Anyway, I've got a site for displaying my photos; I'm not a designer by any means, but I'm trying to figure out how to make it look nicer.

Today's mission is to replace the banner. This was in the first row of a table, so I put it in a div above the table. ( Will deal with the rest later. ) Now it doesn't work. The banner pushes the entire page over 700 px to the right. I used some br tags to fix that, but I'm confused why I'd have to? Also, even though I set margin and padding to zero, the image doesn't show at the top of the page?

If anybody could help me figure this out, I'd be grateful.

http://forrestcroce.com/Galleries/AnimalPortraits.html

Thanks!



Forrest
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
 
Register now for full access!
Old 01-18-2007, 12:14 AM Re: Help! Trying to abandond table layout, having trouble
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Nevermind ... I had align="right" on the banner image itself. That must change the rules as far as the div it sits in filling the width of the page.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 01-18-2007, 02:04 PM Re: Help! Trying to abandond table layout, having trouble
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
I had align="right" on the banner image itself. That must change the rules as far as the div it sits in filling the width of the page
No, that would not have any effect at all on the div and filling the page.

In addition to that, your page is now waaaaay too wide, with horizontal scrolling, and my resolution is 1280x1024 !

For going table-less, I highly recommend this book: http://www.sitepoint.com/books/css2/
__________________
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


Last edited by LadynRed; 01-18-2007 at 02:05 PM..
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-18-2007, 10:26 PM Re: Help! Trying to abandond table layout, having trouble
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Quote:
Originally Posted by LadynRed View Post
No, that would not have any effect at all on the div and filling the page.
Interesting. In that case, I have no idea how I fixed it? I swear, there's as much magic involved as anything else...!

Quote:
Originally Posted by LadynRed View Post
In addition to that, your page is now waaaaay too wide, with horizontal scrolling, and my resolution is 1280x1024 !
Kill one bug, and another pops up! I see this, too, and there's just no way anybody should have to scroll sideways. At this point there seems to be more wrong with my site than is right with it, but hopefully I'm in the right place to at least understand why and what to do about it.

I'm looking at the description of the book you mentioned - it looks use. Thanks!
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 01-20-2007, 05:39 AM Re: Help! Trying to abandond table layout, having trouble
TheClue's Avatar
Novice Talker

Posts: 14
Name: Gabrio
Location: benevento, it
Trades: 0
im looking deeply in the code...it seems you already fixed the bug. Howeaver i think you can still improve it a bit

1. put everything in page inside a "container" DIV. A typical tableless structure could be:

Code:
<body>
<div id="container">
<div id="header"></div>
<div id="leftmenu"></div>
<div id="content"></div>
<div id="footer"></div>
</div>
</body>
this way you can set leftmenu and content's positions making them float
then footer will clean the float status
another plus is to have everything in page semantically splitted in "indicizer" DIVs.

2. your code:

Code:
<div id="topNAV">
		<a href="/Galleries/Seattle.html"><img src="../GraphicElements/TrainPageHeader.png" alt="Forrest Croce;  Fine Art Photography" border="0" /></a>
		<a href="/Galleries/All.html"><img src="/GraphicElements/PageHeader.png" alt="Forrest Croce;  Fine Art Photography" width="719" height="106" border="0" /></a>
	</div>
could be improved CSS-positioning images:

for example, using this CSS rule:

[code]
#topNAV img{
border:0;
display:block;
float:left;
margin-left: 10px;
}

in this way you can set spacing between IMGs and, consequentially, set the position of the banner

3. dont user align="" attributes on P and DIV, but instead make a CSS rule with text-align for them!

ciao!
__________________
Gabrio "TheClue"


Please login or register to view this content. Registration is FREE
TheClue is offline
Reply With Quote
View Public Profile Visit TheClue's homepage!
 
Reply     « Reply to Help! Trying to abandond table layout, having trouble
 

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.15916 seconds with 12 queries