Avatar of David Schure
David Schure

asked on 

Portrait mode works. Landscape does not.

This webpage seems to be working fine in portrait mode on the phone but landscape the text tramps on the picture.  Also on the desktop when you resize the window the picture hugs left.
https://eat-sweat-undress.com/about.php
<style>
* {
  box-sizing: border-box;
}

/* Create two equal columns that floats next to each other */
.column {
  float: left;
  width: 35%;
  padding-left:10px;
}
.column2 {
  float: left;
  width: 65%;
  padding-left:10px;
}
/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}
.page2 {
    width: 100%;
    height: auto;
    padding-top: 20px;
    padding-bottom: 50px;
}
img {
   border-radius: 5px;
   }
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    width: 100%;
  }
  .column2 {
  float: left;
  width: 100%;
  padding-left:10px;
  padding-right:10px;
}
}
@media (max-width: 365px) {
img {
    width: 325px;
}
}
.Alexia {
    /*margin-top: 10px;*/
    font-weight:500;
   font-size:24px;
   margin-bottom: 10px;
}
</style>

Open in new window

CSSHTML

Avatar of undefined
Last Comment
Julian Hansen
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of David Schure
David Schure

ASKER

Hi Julian,
Thank you for the direction...This works.
.column {
  float: left;
  width: 35%;
  padding-left:10px;
  padding-right:10px;
}
.column2 {
  float: left;
  width: 65%;
  padding-left:10px;
  padding-right:10px;
}
/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}
.page2 {
    width: 100%;
    height: auto;
    padding-top: 20px;
    padding-bottom: 50px;
}
img {
   border-radius: 5px;
   width: 100%;
   }
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    width: 100%;
   padding-left:10px;
  padding-right:10px;
  }
  img {
    width: 100%;
}
  .column2 {
  float: left;
  width: 100%;
  padding-left:10px;
  padding-right:10px;
}
}
@media (max-width: 365px) {
.column {
    width: 100%;
   padding-left:10px;
  padding-right:10px;
  }

  .column2 {
  float: left;
  width: 100%;
  padding-left:10px;
  padding-right:10px;
}

img {
    width: 100%;
}
}

Open in new window

Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

You are welcome David.
HTML
HTML

HTML (HyperText Markup Language) is the main markup language for creating web pages and other information to be displayed in a web browser, providing both the structure and content for what is sent from a web server through the use of tags. The current implementation of the HTML specification is HTML5.

62K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo