Turn on thread page Beta

anybody know what's up with my coding? watch

    • Thread Starter
    Offline

    17
    ReputationRep:
    Can't even seem to get a simple html table right, it's annoying because I've been through the coding so many times and I can't figure out what's wrong with it. It's probably some simple mistake that I've missed somewhere. It looks ok but not totally right in mozilla and a big old mess in IE:

    http://www.fallen-grace.org/cscomp/main.htm
    Offline

    1
    ReputationRep:
    Try this....


    PHP Code:
    <html>
    <
    head>
    <
    title>CS Computers</title>
    <
    link rel="stylesheet" href="comp.css" type="text/css">
    </
    head>
    <
    body topmargin="0" bottommargin="0">
    <
    center>
    <
    table width="650" height="100%" cellpadding="0" cellspacing="0" border="0">
    <
    tr>
    <
    td height="164" colspan="7">
    <
    img src="http://www.fallen-grace.org/cscomp/title.gif" align="absbottom">
    </
    td>
    </
    tr>
    <
    tr>
    <
    td width="5" valign="top" bgcolor="#DFDBDB"></td>
    <
    td width="440" valign="top" bgcolor="#FFFFFF">Blah blah blah blah blah
    Blah blah blah blah blahBlah blah blah blah blahBlah blah blah blah 
    blah
    Blah blah blah blah blahBlah blah blah blah blahBlah blah blah 
    blah blah
    Blah blah blah blah blahBlah blah blah blah blahBlah blah 
    blah blah blah
    Blah blah blah blah blahBlah blah blah blah blahBlah 
    blah blah blah blah
    Blah blah blah blah blahBlah blah blah blah blah
    Blah blah blah blah blahBlah blah blah blah blah. </td>
    <
    td width="2" valign="top" bgcolor="#FFFFFF"></td>
    <
    td width="1" valign="top" bgcolor="#000000"></td>
    <
    td width="2" valign="top" bgcolor="#FFFFFF"></td>
    <
    td width="195" valign="top" bgcolor="#FFFFFF">
    <
    img src="http://www.fallen-grace.org/cscomp/photo.gif"><br>
    CASES <br>
    CD ROMS <br>
    CPU <br>
    DVD ROMS <br>
    FLOPPY DRIVES <br>
    GRAPHICS CARDS <br>
    HARD DRIVES <br>
    HEAT SINK FANS <br>
    I/O PRODUCTS <br>
    KEYBOARD MICE <br>
    MEMORY <br>
    MODEMS <br>
    MOTHER BOARDS <br>
    MONITORS <br>
    PRINTERS SCANNERS <br>
    SOUND CARDS <br>
    SPEAKERS <br>
    WRITERS <br>
    MAIN <br>
    </
    td>
    <
    td width="5" valign="top" bgcolor="#DFDBDB"></td>
    </
    tr>
    </
    table>
    </
    center>
    </
    body>
    </
    html
    • Thread Starter
    Offline

    17
    ReputationRep:
    yay! thank you!

    what did you do to it?
    Offline

    1
    ReputationRep:
    (Original post by Frances)
    yay! thank you!

    what did you do to it?
    Fiddled

    Oh, and set the top cell's height containing the image to the height of the image, and aligned the image "absbottom" so it connected with the other one.
    Offline

    8
    ReputationRep:
    looking good tell us when its done!
    Offline

    0
    ReputationRep:
    The site is looking good, will it be database driven?
    • Thread Starter
    Offline

    17
    ReputationRep:
    (Original post by amazingtrade)
    The site is looking good, will it be database driven?
    I don't really know enough about databases to do anything like that. It might have been easier if I actually knew how to do it. :mad:
    Offline

    0
    ReputationRep:
    (Original post by Frances)
    I don't really know enough about databases to do anything like that. It might have been easier if I actually knew how to do it. :mad:
    Yeah it can be a bit complex though its easy if you know how, its good because if you did you would be able allow the user to do searches for products and display the products for the certain conditions such as only products below £100 or somthing.

    It is a little bit more complex that simple Access stuff you do in school though.

    The site looks good anyway.
    • Thread Starter
    Offline

    17
    ReputationRep:
    (Original post by amazingtrade)
    Yeah it can be a bit complex though its easy if you know how, its good because if you did you would be able allow the user to do searches for products and display the products for the certain conditions such as only products below £100 or somthing.

    It is a little bit more complex that simple Access stuff you do in school though.

    The site looks good anyway.
    Hmm, sounds interesting, is it complex to learn? How long would it take to set up?

    (Am just thinking that if I impress the guy he might pay me more money! )
    Offline

    0
    ReputationRep:
    (Original post by Frances)
    Hmm, sounds interesting, is it complex to learn? How long would it take to set up?

    (Am just thinking that if I impress the guy he might pay me more money! )
    Well 98% of all 'active websites' which means it gets a bit of traffic are database drive now.

    All you need to know is basic database knowledge (access will be enough) then you can learn SQL and the rest is done PHP.

    Does your web hosting offer any MySQL databases? If it has PHP then it would normaly have at least one database.

    There is a lot of MySQL databases on the internet.
    Offline

    1
    ReputationRep:
    (Original post by amazingtrade)
    ...and the rest is done PHP.

    Does your web hosting offer any MySQL databases? If it has PHP then it would normaly have at least one database...
    Ahem.

    Do ASP.NET and MSSQL not mean anything to you? :rolleyes:
    • Thread Starter
    Offline

    17
    ReputationRep:
    (Original post by amazingtrade)
    Well 98% of all 'active websites' which means it gets a bit of traffic are database drive now.

    All you need to know is basic database knowledge (access will be enough) then you can learn SQL and the rest is done PHP.

    Does your web hosting offer any MySQL databases? If it has PHP then it would normaly have at least one database.

    There is a lot of MySQL databases on the internet.
    My knowledge of MySql databases only goes about as far as being able to set one up though the Cpanel! My host has unlimted databases, and I recommended the same one to the guy who sites this is, but I said I'd have a look round at different hosts and see what they all offer.

    This is the information I need to put on the site once I've redesigned it: members.lycos.co.uk/cscomputers/
    Offline

    0
    ReputationRep:
    (Original post by Surfing Hamster)
    Ahem.

    Do ASP.NET and MSSQL not mean anything to you? :rolleyes:
    Yes its the same kind of thing only it will cost you more, PHP and MySQL are much much cheaper to host which is why they are more popular, this site uses PHP and MySQL for example.

    ASP.NET and MSSQL is what I will be doing my final year project in, its more for bigger higher budget projects.

    If you can do ASP coding and have the hosting then you can always use Access as the database but its quite slow.
    • Thread Starter
    Offline

    17
    ReputationRep:
    Also, anybody know what's wrong with my css, i.e. why it doesn't work properly in mozilla?I'm using external style sheets and somebody mentioned a while ago that it was wrong, but I've never bothered to find out exactly why
    • Thread Starter
    Offline

    17
    ReputationRep:
    (Original post by amazingtrade)
    Using external stylsheets is the correct way of doing it, according to the UK government and the people that develop and kind of own the world wide web (W3C).

    If it dosn't work in Mozzila then you have a problem with your code some where, you have propably used a none W3C property, I will have a look at the code if you post it here.
    This is the same code I used for ALL of my websites, I always end up just adapting the colours and stuff for that. Most of it works fine, it's usually just the links the text colours that don't work right in mozilla:

    PHP Code:
    <STYLE TYPE-"type/css"
    <!--
    BODY {FONT-FAMILYverdanaFONT-SIZE11pxcolor:#000000;}
    BODY {background-color#DFDBDB;}
    TABLE  {FONT-FAMILYverdanaFONT-SIZE11pxcolor#000000;}
    BODY {SCROLLBAR-FACE-COLOR:#DFDBDB;
    SCROLLBAR-HIGHLIGHT-COLOR#DFDBDB; 
    SCROLLBAR-SHADOW-COLOR:#000000;
    SCROLLBAR-3DLIGHT-COLOR#000000;
    SCROLLBAR-ARROW-COLOR:  #DFDBDBF;
    SCROLLBAR-TRACK-COLOR#DFDBDB; 
    SCROLLBAR-DARKSHADOW-COLOR#DFDBDB; }
    a:link 
    {text-decorationnonecolor#404040;}
    a:visited 
    {text-decorationnonecolor:#404040;}
    a:hover 
    {text-decorationunderlinecolor#000000;}
    a:active
    {text-decorationnonecolor:  #404040;}
    -->
    </
    style
    Offline

    0
    ReputationRep:
    Would putting everything into 1 body section not work?
    (I don't think SCROLLBAR is supported in mozilla although I'm not sure)
    PHP Code:
    <STYLE TYPE-"type/css">
    <!--
    TABLE  {FONT-FAMILYverdanaFONT-SIZE11pxcolor#000000;}
    BODY {
    FONT-FAMILYverdanaFONT-SIZE11pxcolor:#000000;
    background-color#DFDBDB;
    SCROLLBAR-FACE-COLOR:#DFDBDB;
    SCROLLBAR-HIGHLIGHT-COLOR#DFDBDB;
    SCROLLBAR-SHADOW-COLOR:#000000;
    SCROLLBAR-3DLIGHT-COLOR#000000;
    SCROLLBAR-ARROW-COLOR:  #DFDBDBF;
    SCROLLBAR-TRACK-COLOR#DFDBDB;
    SCROLLBAR-DARKSHADOW-COLOR#DFDBDB; }
    a:link
    {text-decorationnonecolor#404040;}
    a:visited
    {text-decorationnonecolor:#404040;}
    a:hover
    {text-decorationunderlinecolor#000000;}
    a:active
    {text-decorationnonecolor:  #404040;}
    -->
    </
    style
    Offline

    0
    ReputationRep:
    (Original post by Philibob)
    Would putting everything into 1 body section not work?
    (I don't think SCROLLBAR is supported in mozilla although I'm not sure)
    PHP Code:
    <STYLE TYPE-"type/css">
    <!--
    TABLE {FONT-FAMILYverdanaFONT-SIZE11pxcolor#000000;}
    BODY {
    FONT-FAMILYverdanaFONT-SIZE11pxcolor:#000000;
    background-color#DFDBDB;
    SCROLLBAR-FACE-COLOR:#DFDBDB;
    SCROLLBAR-HIGHLIGHT-COLOR#DFDBDB;
    SCROLLBAR-SHADOW-COLOR:#000000;
    SCROLLBAR-3DLIGHT-COLOR#000000;
    SCROLLBAR-ARROW-COLOR#DFDBDBF;
    SCROLLBAR-TRACK-COLOR#DFDBDB;
    SCROLLBAR-DARKSHADOW-COLOR#DFDBDB; }
    a:link
    {text-decorationnonecolor#404040;}
    a:visited
    {text-decorationnonecolor:#404040;}
    a:hover
    {text-decorationunderlinecolor#000000;}
    a:active
    {text-decorationnonecolor#404040;}
    -->
    </
    style
    Its not, its an I.E only add on, I don;t think W3C officialy supports it although i may be wrong.
    • Thread Starter
    Offline

    17
    ReputationRep:
    Yeah, I don't really mind too much about the scrollbar in mozilla.

    Philibob: I tried your code and it worked fine apart from the fact that the text inside the tables went really big. :confused:

    thanks for the help guys
    • Thread Starter
    Offline

    17
    ReputationRep:
    OK does the site look like this to anybody in i.e. now? How could changing the css mess with the tables like that?
    Attached Images
     
    Offline

    0
    ReputationRep:
    It was like that before for me
 
 
 
Poll
Who is most responsible for your success at university

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.