Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

44 users online



One page, now only one problem

One page, now only one problem

Currently viewing this thread: 1 (0 members and 1 guests)


Page 1 out of 2
grut

grut

Neverside Noobie
Status: Offline!

One page, now only one problem

Well hopefully after I air out this set of them, I'll be done. I've been working for the last hour trying to fix what I did sloppy last night. This'll be my last site using tables, I'm going to start on div's, but it's too late now. Here's the problem.

My td with the content on this page won't scroll. I'm using the overflow: scroll tag in css...

Heres the page: http://bios.coldcomfortband.com/aaronbio.html
Here's the css: http://coldcomfortband.com/cc.css

Last edited by grut, August 23rd, 2005 02:08 AM (Edited 4 times)

James

James

Development Forum Leader
Status: Offline!

Your code is a disaster, start over.

___________________

irc.efnet.net #neverside
Neverside merchandise!

MrCastle

MrCastle

Official
Status: Offline!

^ I agree...

___________________

"Sam says : Die!"

mroak

mroak

Swede
Status: Offline!

^me too...

___________________

//mr.oak

Lasac

Lasac

Lasac.nl
Status: Offline!

^^^

grut

grut

Neverside Noobie
Status: Offline!

yup^^^...

but seriously... lol i need to figure this out. And I'm not gonna start over now, I AM going to use divs for my next site though for sure.

coolaid

coolaid

Oh Yeaa.
Status: Offline!

i couln't find a reasonable awnser so i would say redo the code ^^
but really, just use the tab button to show whats nested into what so to make shure that everything has a close tag... it just might be the problem. format the code

___________________

scudworkz.com.

Simon

Simon

Jag är Gandalf den grå och den vite, men vem är du?
Status: Offline!

First off: Let's stop the "ditto" spamming. :) It will not help much.

Secondly: You have to close all selectors, add proper prefix/suffixes to the values etc:

Code:

body {
margin: 0;
padding: 0;
}

p.headlinebig {
color: #FFF;
font-family: sans-serif;
font-size: 25px;
font-weight: bold;
text-align: center;
}

p.headlinesmall {
color: #FFF;
font-family: sans-serif;
font-size: 16px;
font-weight: bold;
text-align: center;
}

p.mainwhite {
color: #FFF;
font-family: sans-serif;
font-size: 14px;
font-weight: bold;
text-align: justify;
overflow: scroll;
}

td.bios {
height: 377px;
width: 454px;
overflow: scroll;
background-image: url(http://bios.coldcomfortband.com/biosbg.gif);
background-repeat: no-repeat;
}

td.content {
height: 559px;
width: 705px;
background-image: url(http://coldcomfortband.com/cccontentbg.gif);
background-repeat: no-repeat;
}

The only value you can skip suffixes such as "px" on is 0 (zero), this is because nothing is always nothing no matter which measurement you use. ;)

I can't find any actual errors such as missing tags in the HTML atm but I can download it and have a closer look later. A friend-to-friend tip from me would be to add a proper doctype, I think you should pick something like HTML transitional:

Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

That would go on the top of your html document (the absolute top).

___________________

Neversidian, your staff is broken.

Last edited by Simon, August 23rd, 2005 11:21 PM (Edited 2 times)

grut

grut

Neverside Noobie
Status: Offline!

Thanks, for the help, but none of that worked. I think I'm going to cave in and rewrite the code into div's. This will take a while since I've never worked with them, but I think it will be worth it in the end...

Update... I reworked the code into divs. It was easier than I thought... LOL thanks guys.

Last edited by grut, August 24th, 2005 06:44 AM (Edited 1 times)

Simon

Simon

Jag är Gandalf den grå och den vite, men vem är du?
Status: Offline!

Very good grut, I'm happy to see you tackling this head-on. :D

I hope you don't mind some questions and suggestions, you're free to use them or not but I want to let you know at least... here goes:

Your CSS is perfectly valid now except for one minor thing that can cause plenty of problems in browsers, you need to add the hex-decimal prefix (a square: #) in front of hex-colors (#FFFFFF instead of just FFFFFF). Besides that your CSS is looking good. :)

In HTML it can be seen as a personal preference whether you write tags/elements and attributes in uppercase (example: <IMG SRC="path/to/image.ext">) or lowercase (example: <img src="path/to/image.ext">). At some point I think you will want to move towards XHTML however, and in XHTML you must write it in lowercase like in the second example. I would say it's a good practise to do it all in lowercase so that once you move over to newer doctypes, it wont be as much of a big move when it comes to pure habits.

Images, no matter what doctype, should have an alt attribute which is alternative text if the image doesn't load. The html document should actually only contain content related images (as in not design related ones) but we can't be picky on everything here in life, not always at least. You could add something like alt="Design related image" to the design related images and the person viewing would at least know in case it doesn't load.

Now this thing is something I'm just curious about, how come you tab backwards? (backwards compared to how the most of us do it) Tabbing isn't important for the computer but it is for yourself, with proper tabbing it's a lot easier to find missing tags/elements and just to read your code and make out areas in it. :)

PHP:

<?php // Using the PHP tag as it works with white-space. :)

<parent>
    <
child-parent>
        <
child>This is some text inside this 2nd child.</child>
    </
child-parent>
    <
child-parent>
        <
child>This is some text inside this 2nd child.</child>
    </
child-parent>
</
parent>
<
parent>
    <
child-parent>
        <
child>This is some text inside this 2nd child.</child>
    </
child-parent>
    <
child-parent>
        <
child>This is some text inside this 2nd child.</child>
    </
child-parent>
</
parent>

?>

If that now makes the slightest sense...

I found that your code you use right now has a missing </div>, tabbing like this would have made it easier for you to find it as it becomes more obvious:

PHP:

<?php // Using the PHP tag as it works with white-space. :)

<parent>
    <
child-parent>
        <
child>This is some text inside this 2nd child.</child>
    </
child-parent>
    <
child-parent>
        <
child>This is some text inside this 2nd child.</child>
    </
child-parent>
</
parent>
<
parent>
    <
child-parent>
        <
child>This is some text inside this 2nd child.</child>
    </
child-parent>
    <
child-parent>
        <
child>This is some text inside this 2nd child.</child>
    </
child-parent>

?>

(Last </parent> is missing there)

Also, when you can, try to use id="text" instead of name="text". You can't do that all the time (and you shouldn't) but when it is in the subject of giving JavaScripts and CSS targets (#text {} for example) you should use id="text". :)

Lastly, try to (even though it didn't fix your problem like so), add a proper doctype and charset to your code. Here you can see examples of doctypes and here you can get a simple introduction to what those crazy pieces of code really mean and does for you. You could also read this A List Apart article: "Fix Your Site With the Right DOCTYPE!" if you have time some day.
This explains what a charset is and how to use it. No, I don't expect you to start reading all that text, I can point out that this part could be worth trying to read though. (you don't have to do it right now of course) ;)

----

Now, if you have read all this and thought it sounded somewhat reasonable, I wouldn't force you to do all that yourself so I attached a version of your code with the suggested additions and changes, use if it you want:

Attachments:

index.html (Download) 6.23 Kb, 146 views

___________________

Neversidian, your staff is broken.

Last edited by Simon, August 24th, 2005 08:33 AM (Edited 1 times)

Page 1 out of 2
Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0101 seconds.