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 9 of 9
  1. #1
    New Coder
    Join Date
    Feb 2011
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Images lind up odd

    Ok i may be coding this wrong i just started useing CSS about 5 or so days ago but my page wont let me line up 2 images next together

    style.css code
    PHP Code:
    body {
        
    background-colorblack;
        
    background-imageurl(images/bg.png);
        
    background-attachmentfixed;
        
    background-repeatrepeat-x;

    }
    #banner {
        
    width980px;
        
    height190px;
        
    backgroundurl(images/banner.gifno-repeat;
        
    }
    #main{
        
    width1055px;
        
    height800px;
        
    backgroundurl(images/main.gifno-repeat;
        
    background-position305px 0px;
    }
    .
    news{
        
    font-size25px;
        
    width:600px;
        
    height:50px;
        
    padding-left200px;
        
    padding-top10px;
        
    }
    .
    title2 {
        
    font-size14px;
        
    letter-spacing3px;
        
    color#FFFFFF;
        
    text-transformuppercase;
        
    text-decorationunderline;
        
    }

    #login{
        
    width294px;
        
    height190px;
        
    backgroundurl(images/login.pngno-repeat;
        
    position:relative;
        
        

    }    
    .
    login {
        
    font-size4px;
        
    color#FFFFFF;
        
    text-transformuppercase;
        
    padding-left8px;
    }

    .
    footer {
        
    height21px;
        
    background-imageurl(images/copyright.gif);
        
    background-repeatrepeat-x;
        
    font-family"Calibri"Verdanasans-serif;
        
    font-size12px;
        
    color#666666;
        
    text-aligncenter;

    index.php(it hs some html code to )
    PHP Code:
    <html>
    <head>
    <link rel="shortcut icon" href="favicon.ico" > 
    <link rel=stylesheet type="text/css" href="style.css">
    <title>NGZ Workshop</title>
    </head>
    <body>
    <?php
    include('include/config.php');
    ?>
    <script type="text/javascript" src="js/mouesover.js">
    </script>
    <center>
    <div id="banner"></div>

    <?php include("page/navigation.php"); ?>
    <div id="login">
       <div class="login">
            <?php include("login.php"); ?>
        </div>
    </div>    
    <div id="main">
        <div class="news">
            <?php include("main.php"); ?>
        </div>
    </div>
    </html>
    Last edited by Holley146; 02-26-2011 at 09:58 AM.

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,708
    Thanks
    0
    Thanked 237 Times in 232 Posts
    Hi there Holley146,

    and a warm welcome to these forums.

    Can you supply a link to the problematic site?

    We might then be able to help you.

    coothead

  • #3
    New Coder
    Join Date
    Feb 2011
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by coothead View Post
    Hi there Holley146,

    and a warm welcome to these forums.

    Can you supply a link to the problematic site?

    We might then be able to help you.

    coothead
    ok np and thanks

    LINK

  • #4
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,708
    Thanks
    0
    Thanked 237 Times in 232 Posts
    Hi there Holley146,

    I have looked at you code and it seems to be in rather a mess.

    It also uses javascript unnecessarily for the navigation rollovers.

    I have therefore tidied up the basic layout for you.

    You can download the fruits of my labour - in a zip file - from this site...

    I hope that this will help to get you going in the right direction.

    coothead

  • Users who have thanked coothead for this post:

    Holley146 (02-26-2011)

  • #5
    New Coder
    Join Date
    Feb 2011
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thanks like i sayed befor im new to CSS and mort of the time i just adding or fixing some code this is the first time i took the timeto build my own website.

  • #6
    New Coder
    Join Date
    Feb 2011
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation

    Quote Originally Posted by coothead View Post
    Hi there Holley146,

    I have looked at you code and it seems to be in rather a mess.

    It also uses javascript unnecessarily for the navigation rollovers.

    I have therefore tidied up the basic layout for you.

    You can download the fruits of my labour - in a zip file - from this site...

    I hope that this will help to get you going in the right direction.

    coothead
    but still do you know why its doing this??

  • #7
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,708
    Thanks
    0
    Thanked 237 Times in 232 Posts
    Hi there Holley146,
    but still do you know why its doing this??
    I presume that you referring to problems with your code.

    As your code is riddled with numerous coding errors....

    ...I did not bother to find the cause.

    Instead I discarded it totally and started again from the top.

    coothead

  • #8
    New Coder
    Join Date
    Feb 2011
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    i think the errors that site is giveing is coming from my php code. I iv only been doing real layout coding for about 2 weeks now maybe i just need to hit the books some more. But thanks.

  • #9
    New Coder
    Join Date
    Feb 2011
    Posts
    10
    Thanks
    1
    Thanked 0 Times in 0 Posts
    ok mega is just now letting me download the layout you uploaded. When i get done added in the login and other stuff ill send you a link and you tell me what you think of 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
    •