center and max-width?

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

Hi,
I'm making some containers for i-frames and maps, which i put nicely centered, but if i add max-width to the css style, the centering is gone. any way to correct this?
best,
David
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

anyone a suggestion?
i figure it must be possible but whatever i try with css or different type container-in-container, the frame gets out of center when a max-width is used in css style field.

hope there is a way :)
thanks,
David
deedee123
Posts: 285
Joined: Wed May 20, 2020 10:38 am
Location: NL

ah already solved it by setting the width in CSS with a percentage, and then with logic block changing CSS width to px when window size has a certain width. :D
User avatar
360Texas
Moderator
Posts: 3684
Joined: Sat Sep 09, 2006 6:06 pm
Location: Fort Worth, Texas USA
Contact:

:) Got it. Good for you.
Dave
Pano2VR Forum Global Moderator
Image
Visit 360texas.com
Post Reply