Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-23-2010, 01:25 AM   PM User | #1
xillent23
New to the CF scene

 
Join Date: Dec 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
xillent23 is an unknown quantity at this point
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
xillent23 is offline   Reply With Quote
Old 12-23-2010, 01:41 AM   PM User | #2
DJCMBear
Senior Coder

 
DJCMBear's Avatar
 
Join Date: Mar 2010
Location: United Kindom
Posts: 1,173
Thanks: 14
Thanked 136 Times in 136 Posts
DJCMBear is on a distinguished road
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
DJCMBear is offline   Reply With Quote
Old 12-23-2010, 01:51 AM   PM User | #3
xillent23
New to the CF scene

 
Join Date: Dec 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
xillent23 is an unknown quantity at this point
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!
xillent23 is offline   Reply With Quote
Reply

Bookmarks

Tags
layout, php include, tables, webdesign

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 12:48 PM.


Advertisement
Log in to turn off these ads.