Problem with Chrome for Android
Page 1 of 1
trollpower




Posts: 2299

PostPosted: Sun, 13th Sep 2015 08:21    Post subject: Problem with Chrome for Android
So this fucking website http://zoranovsvet.sk/ is not fully zoomed, but Chrome keeps a blank column on the right side of the screen.

Can somebody tell me whats wrong with my code?
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Sun, 13th Sep 2015 08:51    Post subject:
Well your #menu is an unsorted list (UL), which has the display style of BLOCK by default. BLOCK elements will try to occupy 100% of the screen width. Now to compensate for the position absolute style of your #logo you just tell your #menu to have a left position of 335px, thereby shifting a 100% wide block element 335 pixel to the right, thus creating the empty space on the right. I can only imagine that similar stuff is happening in the main block of your page too.

Be careful with the positioning (left, right, top, bottom) of elements that are of type position: relative (generally all are of this type if not specifically overwritten).

To fix the problem I'd redesign the css for the menu stuff, but a very easy way to test that I'm not talking bullshit, just remove the left:335px from your #menu and add display:inline-block; and add margin: 0 0 0 50px;


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
trollpower




Posts: 2299

PostPosted: Sun, 13th Sep 2015 10:42    Post subject:
thank you

but still the main page is few pixels shifted from right and footer is cropped on the right side Sad

focking chrome for android Very Happy


Ryzen 7 7800X3D, Noctua NH D15 Chromax, ASUS TUF RTX 4070TI 12GB, GIGABYTE X670 AORUS ELITE AX, Corsair 2x16GB DDR5 6000MHz CL30, Samsung PRO 990 2TB, Intel 545s 512GB SSD, Seasonic Focus GX 850W Gold, Lian Li Lancool II Mesh Performance Black
Back to top
PumpAction
[Schmadmin]



Posts: 26759

PostPosted: Sun, 13th Sep 2015 11:02    Post subject:
Not a problem with chrome but your bad code Wink


=> NFOrce GIF plugin <= - Ryzen 3800X, 16GB DDR4-3200, Sapphire 5700XT Pulse
Back to top
trollpower




Posts: 2299

PostPosted: Sun, 13th Sep 2015 11:41    Post subject:
yeah I know
Poker Face


Ryzen 7 7800X3D, Noctua NH D15 Chromax, ASUS TUF RTX 4070TI 12GB, GIGABYTE X670 AORUS ELITE AX, Corsair 2x16GB DDR5 6000MHz CL30, Samsung PRO 990 2TB, Intel 545s 512GB SSD, Seasonic Focus GX 850W Gold, Lian Li Lancool II Mesh Performance Black
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group