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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    php giving me trouble with my tables?

    hey can someone please help me out here... i cant figure this out.. why my backround keeps repeating while im trying to use a php include id to load my other pages in...ive done this years ago (4-5) and i cannot figure it out.. im not that good of a coder and i did what i could! but if someone can help me figure this out i would greatly appreciate it!

    here is a link.. http://www.designer88.net/index.php?id=main check it out.. notice the repeat of the content in the middle? i want it to the end at the bottom mini navigation i got. But if i have no content in there its pefect as i want it to be.. just click around the links and you will notice...thanks you guys

  • #2
    Senior Coder DJCMBear's Avatar
    Join Date
    Mar 2010
    Location
    United Kindom
    Posts
    1,173
    Thanks
    14
    Thanked 136 Times in 136 Posts
    This is a css problem not a php problem I think a mod should move this over to HTML / CSS.

    Now to answer your question about the background being repeated, it's because you haven't told the css background to stop repeating.

    Change this line: background-image: url(bgbg.jpg);
    To this: background-image: url(bgbg.jpg) no-repeat;
    And you could also do this to make the background fixed
    background-image: url(bgbg.jpg) fixed no-repeat;

    Also you can do this to make the margin styles better looking.
    margin: 0 0 0 0; or just margin: 0;
    Official BinPress hand picked coder.
    For anyone worried about SQL injection go have a look at my small yet powerful script here.
    Go Pledge for Light Table, if it hit's $300,000 Python and other languages will get added.
    I am 1 of 65,608 people to get a Pebble Watch :P

  • #3
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by DJCMBear View Post
    This is a css problem not a php problem I think a mod should move this over to HTML / CSS.

    Now to answer your question about the background being repeated, it's because you haven't told the css background to stop repeating.

    Change this line: background-image: url(bgbg.jpg);
    To this: background-image: url(bgbg.jpg) no-repeat;
    And you could also do this to make the background fixed
    background-image: url(bgbg.jpg) fixed no-repeat;

    Also you can do this to make the margin styles better looking.
    margin: 0 0 0 0; or just margin: 0;
    thank you so much sir. I spent about 2hours trying to figure it out, while you told me in 20minutes, lmao. I remember now exactly this problem occuring years back.. thank you again!


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •