text alignment problem

i have this design but the problem is text is not aligning properly
45 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Jochem
Jochem2y ago
you'll have to be more specific to what you want the text to align to, and also provide the code, preferably in a codepen. You should check #How To Ask Good Questions
peterpumkineaterr
that's adobe xd prototype that's the end result let me share the html here
<div class="container">
<img src="/mask.jpg" alt="">
</div>

<div class="right">
<div class="left">
<p>
Lorem Ipsum is

simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry’s standard
dummy text ever since the 1500s,

when an unknown printer took a galley of type
and scrambled it to make a type specimen book.
It has survived not only five

centuries, but also the leap into electronic
typesetting, remaining essentially unchanged.
It was popularised in the 1960s with the release
of Letraset sheets containing Lorem Ipsum passages,

and more recently with desktop publishing software like
Aldus PageMaker including versions of

-Lorem Ipsum.
</p>
</div>
</div>
<div class="container">
<img src="/mask.jpg" alt="">
</div>

<div class="right">
<div class="left">
<p>
Lorem Ipsum is

simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry’s standard
dummy text ever since the 1500s,

when an unknown printer took a galley of type
and scrambled it to make a type specimen book.
It has survived not only five

centuries, but also the leap into electronic
typesetting, remaining essentially unchanged.
It was popularised in the 1960s with the release
of Letraset sheets containing Lorem Ipsum passages,

and more recently with desktop publishing software like
Aldus PageMaker including versions of

-Lorem Ipsum.
</p>
</div>
</div>
i want paragraph to be shown on website same as i made it in ui
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
peterpumkineaterr
* {
margin: 0%;
padding: 0%;
}

body {
background: rgb(233, 236, 239);
}

p {
font-size: 1.5rem;
position: fixed;
}

img {
float: right;
text-align: left;
height: 100vh;
}
* {
margin: 0%;
padding: 0%;
}

body {
background: rgb(233, 236, 239);
}

p {
font-size: 1.5rem;
position: fixed;
}

img {
float: right;
text-align: left;
height: 100vh;
}
css
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
peterpumkineaterr
i gave it <p>
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
peterpumkineaterr
what else i can do ?
peterpumkineaterr
it is like this now
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
peterpumkineaterr
margins to p?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
peterpumkineaterr
who to make it center ? really ? how ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
peterpumkineaterr
i'm in mac can you tell me where i can see it?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
peterpumkineaterr
wait
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
peterpumkineaterr
i got one iframe link
peterpumkineaterr
got this
peterpumkineaterr
does this work perfectly ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
peterpumkineaterr
what size unit is best for text ? rem or em ?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
peterpumkineaterr
for now i'm not worried cause that's the single page my website will have
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
peterpumkineaterr
it's like this
peterpumkineaterr
how can i make it proper paragraph
peterpumkineaterr
what bout the paragraph
Mannix
Mannix2y ago
what do you mean ?
peterpumkineaterr
can you see the change did you checked ?
Mannix
Mannix2y ago
you can't edit my codepen you need to fork it 😉
peterpumkineaterr
ohh i did this
<div class="container">

<div class="left">
<p>
Lorem Ipsum is

simply dummy text of the printing and typesetting industry.<br>
Lorem Ipsum has been the industry’s standard<br>
dummy text ever since the 1500s,
<br>
when an unknown printer took a galley of type<br>
and scrambled it to make a type specimen book.<br>
It has survived not only five
<br>
centuries, but also the leap into electronic<br>
typesetting, remaining essentially unchanged.<br>
<br>
It was popularised in the 1960s with the release<br>
of Letraset sheets containing Lorem Ipsum passages,<br>
<br>
and more recently with desktop publishing software like<br>
Aldus PageMaker including versions of<br>
<br>
<br> -Lorem Ipsum.
</p>
</div>

<div class="right">
<img src="https://unsplash.it/500" alt="">
</div>
</div>
<div class="container">

<div class="left">
<p>
Lorem Ipsum is

simply dummy text of the printing and typesetting industry.<br>
Lorem Ipsum has been the industry’s standard<br>
dummy text ever since the 1500s,
<br>
when an unknown printer took a galley of type<br>
and scrambled it to make a type specimen book.<br>
It has survived not only five
<br>
centuries, but also the leap into electronic<br>
typesetting, remaining essentially unchanged.<br>
<br>
It was popularised in the 1960s with the release<br>
of Letraset sheets containing Lorem Ipsum passages,<br>
<br>
and more recently with desktop publishing software like<br>
Aldus PageMaker including versions of<br>
<br>
<br> -Lorem Ipsum.
</p>
</div>

<div class="right">
<img src="https://unsplash.it/500" alt="">
</div>
</div>
Mannix
Mannix2y ago
you can check the codepen now your p should be a heading and a p element 🙂 you could also instead of using br put all those text blocks in their own p elements
peterpumkineaterr
The new issue
Mannix
Mannix2y ago
use media query to change grid-template-columns 🙂
peterpumkineaterr
Should i do display grid in body ? Can you show how A little example i meant
Mannix
Mannix2y ago
check the pen i moved the grid-template-columns into a media query so that at 700px and above it will be 2 columns below they will stack
peterpumkineaterr
can you check this
Mannix
Mannix2y ago
why do use float? just use the code from my pen