7 replies [Last post]
tranhelen
Offline
newbie
Last seen: 3 years 5 weeks ago
Timezone: GMT-4
Joined: 2011-03-14
Posts: 4
Points: 5

Hello there,

I have a website for a client in testing phases here:
http://optionbcreative.com/client/CCD

It seems to test well in just about every browser I've tried it on but I believe I must have done something wrong in the coding because the website refuses to scroll in the Landscape view of the iPhone Browser. It seems to be fine with it's in portrait and works well, but as soon as I turn my iPhone to the side, the website is unscrollable and cuts off at the top.

It may be the code that I used to position the DIV maincontainer in the horizontal and vertical centre.

Any help would be greatly appreciated,
Helen Tran

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 years 11 weeks ago
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2037
Points: 2256

Don't abuse absolute positioning

It's most likely the inappropriate use of absolute positioning. Remove the positioning from one of ... er, all of your maincontainers. How many "main containers" do you have?

Semantic naming of IDs is probably something you should check into and also look up "divitis".

yet again.

tranhelen
Offline
newbie
Last seen: 3 years 5 weeks ago
Timezone: GMT-4
Joined: 2011-03-14
Posts: 4
Points: 5

?

I don't think your comments were very constructive.

This thread on csscreator has used absolute positioning to create vertical/horizontal centering, and so have many other websites.
http://csscreator.com/node/308

And since you're saying that it's incorrect, then I'm asking for help on how to make it correct. It's incredibly frustrating to get a reply like that... and if I was going to get that response from someone here - I might as well have not posted it.

It's either I do it through absolute positioning, or I do it this way here:
http://optionbcreative.com/client/CCD/test

I don't know of any other way, and your comment doesn't offer any help.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 years 11 weeks ago
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2037
Points: 2256

Quiet, you.I suggested you

Quiet, you.

I suggested you remove the absolute positioning. Do that and observe the issue. That'll tell you if that's the problem or not. It is by the way.

My comments only intended to help and I'm not sure which part of my reply was offensive to you? You may as well get these things sorted during testing instead of waiting for all the issues you'll have after release.

Edited for spellinj

yet again.

tranhelen
Offline
newbie
Last seen: 3 years 5 weeks ago
Timezone: GMT-4
Joined: 2011-03-14
Posts: 4
Points: 5

Nevermind... I got it using

Nevermind... I got it using table positioning on the DIV.
http://optionbcreative.com/client/CCD/test/thankyou.html

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 years 11 weeks ago
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2037
Points: 2256

Glad to help. Let us know if

Glad to help. Let us know if you need help with the other issues.

yet again.

tranhelen
Offline
newbie
Last seen: 3 years 5 weeks ago
Timezone: GMT-4
Joined: 2011-03-14
Posts: 4
Points: 5

Thank you for pointing out

Thank you for pointing out the divitis, but you weren't very much help with much else.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 2 years 11 weeks ago
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2037
Points: 2256

tranhelen wrote:Thank you

tranhelen wrote:

Thank you for pointing out the divitis, but you weren't very much help with much else.

I guess I'm ok with that but are you saying that the issue wasn't with the inappropriate use of absolute positioning?

Sorry if you got 100 email notifications, my spelling seems to be slipping today and I edited a lot in this thread. Smile

yet again.