Web Design Forums

PHP

Have questions about PHP? Ask them here and our experts will assist you before you know it! You can also find help in the documentation at PHP.net.

Problems with PHP positioning



Site of the Month Nominations
ENTER YOUR SITE NOW!

Reply
 
LinkBack Thread Tools
Old June 21 '09, 11:15 PM (#1)
DGS is offline
DGS
WDF Member
 
DGS's Avatar
 
Join Date: May 2009
Posts: 25
DGS is an unknown quantity at this point
Problems with PHP positioning

Alright, so I'm having trouble with my PHP scripts repositioning my pages.

I'm using CSS and have different div's for different sections.

The only section that's messing up is the section that contains the script.

Everything gets pushed to the far right with the script.

Here is a normal page without the PHP script: http://deadlygamingstudios.vlexo.net

And here is a page that is pushed to the far right with the script:
http://deadlygamingstudios.vlexo.net/members/login.html


I changed nothing in the CSS. All i did is pop the PHP code in where I put my normal HTML and text.

Last edited by DGS; June 22 '09 at 11:47 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 22 '09, 01:09 AM (#2)
Dorky is offline
Freelance
 
Dorky's Avatar
 
Join Date: June 2009
Location: Destin Florida
Posts: 905
Dorky will become famous soon enough
it looks like you have some html tags without closings. you may need to refine your echo commands. also i dont see your css but all it takes is one missed bracket, more often then not that will result in a left pull though.
i would just be sure your php is clean.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 22 '09, 02:50 AM (#3)
DGS is offline
DGS
WDF Member
 
DGS's Avatar
 
Join Date: May 2009
Posts: 25
DGS is an unknown quantity at this point
Thanks Dorky.

The thing is, it's happening on an html document without any php scripts on it too. So it can't be just the php.

I think it's just my css sheet in that particular directory.
But what could the problem be?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 22 '09, 12:57 PM (#4)
Dorky is offline
Freelance
 
Dorky's Avatar
 
Join Date: June 2009
Location: Destin Florida
Posts: 905
Dorky will become famous soon enough
overflow : auto; is a default value. no need to declare

!important not serving any purpose at this point as body will always be lowest indexed.

clear needs to be declared with float not separately.

that all i see as far as css. but like i said i did see some open html tags in the source.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 22 '09, 04:32 PM (#5)
DGS is offline
DGS
WDF Member
 
DGS's Avatar
 
Join Date: May 2009
Posts: 25
DGS is an unknown quantity at this point
You saw open HTML tags on the log in page source?
Can you please specify where?

And I'm having trouble pinpointing what you're talking about in the CSS.

The overflow : auto; is only included in a special div called "code." I do not use that div anywhere on my site, so I don't think that will affect anything.

The !important; is used so that the Google auto-fill feature that comes with the Google toolbar doesn't turn my form fields yellow, causing the white text entered in them to be un-readable.

And where is the 'clear' code you're talking about?
Do you mean the clear with the .br class?
That's not included on the section of the page with the content either, so I don't see why it would affect this page and not my others.

I still don't understand why this is only affecting pages in the /members directory of my site.

Last edited by DGS; June 22 '09 at 05:10 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23 '09, 03:35 AM (#6)
Dorky is offline
Freelance
 
Dorky's Avatar
 
Join Date: June 2009
Location: Destin Florida
Posts: 905
Dorky will become famous soon enough
sorry man i actually i didnt cross check the two for class. what i did see, the <p> tags open. i will play with some of the code in the morning and see if i can recreate it.
the clear was a clear: both;
either way im sure its a syntactical error.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23 '09, 02:00 PM (#7)
DGS is offline
DGS
WDF Member
 
DGS's Avatar
 
Join Date: May 2009
Posts: 25
DGS is an unknown quantity at this point
Oh, no, it's cool. I'm just glad you're trying to help me.
I'm looking for the open <p> tags, but I haven't found them yet. But I'll check again.
I'll look at the clear again too.

But do you think you know why it's only happening to those pages in that certain directory?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23 '09, 06:26 PM (#8)
Danny[MLWA] is offline
WDF Regular
 
Danny[MLWA]'s Avatar
 
Join Date: June 2009
Location: Goldsboro, North Carolina, USA
Posts: 109
Danny[MLWA] is on a distinguished road
Sorry I can't help bud, those pages aren't loading for me =(
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23 '09, 07:01 PM (#9)
DGS is offline
DGS
WDF Member
 
DGS's Avatar
 
Join Date: May 2009
Posts: 25
DGS is an unknown quantity at this point
They aren't loading? Oh, wow.

Try these.

http://deadlygamingstudios.vlexo.net/

http://deadlygamingstudios.vlexo.net/members/login.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23 '09, 07:10 PM (#10)
Danny[MLWA] is offline
WDF Regular
 
Danny[MLWA]'s Avatar
 
Join Date: June 2009
Location: Goldsboro, North Carolina, USA
Posts: 109
Danny[MLWA] is on a distinguished road
Where you have:

Code:
 <div id="content">

<font size="2">
Add,
Code:
<h3>something</h3><p>
before the font tag and after the div tag...

Before the footer starts, end the p tag... it seems that your site's CSS depends on those elements in order to position those blocks properly.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23 '09, 07:21 PM (#11)
Dorky is offline
Freelance
 
Dorky's Avatar
 
Join Date: June 2009
Location: Destin Florida
Posts: 905
Dorky will become famous soon enough
that kinda funky though. i dont know i would use complex tags rather then find and fix the actual issue.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23 '09, 09:58 PM (#12)
imagn is offline
WDF Regular
 
imagn's Avatar
 
Join Date: July 2007
Location: Los Angeles
Posts: 156
imagn will become famous soon enough
On line #113 of your CSS the "container" div was set to float right. If you change

#content { float: right; width: 510px; margin-top: 30px; margin-left: 2px; }

to

#content { float: left; width: 510px; margin-top: 30px; margin-left: 2px; }

you get

http://www.imagndesign.com/_testing/dgs.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old June 23 '09, 10:13 PM (#13)
DGS is offline
DGS
WDF Member
 
DGS's Avatar
 
Join Date: May 2009
Posts: 25
DGS is an unknown quantity at this point
Oh, wow.
Lots of solutions here.
Thank you both, I'll give both of them a try and see what happens.

EDIT::

Thank you both, both of your solutions help me fix it.

@ imagn:
I'm just confused on why the float right only affected pages in the /members directory and not in my main site.

Last edited by DGS; June 23 '09 at 10:21 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  Web Design Forums » Programming Help » PHP

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Top 21 PHP Programming mistakes thexchord PHP 19 June 18 '10 02:20 PM
Php code problems longstand PHP 2 October 9 '07 07:17 AM
Problems with installing PHP and Apache Hideo PHP 3 December 1 '06 02:00 PM
PHP mailing list problems.... Melancholicmike PHP 2 January 5 '06 05:30 PM
PHP Problems Samibouni PHP 14 January 7 '04 11:41 AM

 
User Infomation
Your Avatar

Site Of The Month

Ticket Cake
Ticket Cake

Ticket Cake is a drupal based event ticketing platform. It features that ability to browse events and share them.

Nominate Your Site Now!

Advertisement
WolfCMS.org

Latest Articles
- by RickM
- by bfsog

Advertisement

Partner Links



All times are GMT -4. The time now is 02:38 AM.


WebDesignForums.net is Copyright © 2010 RikeMedia.

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163