Same code displayed differently

Joined
Feb 15, 2021
Messages
99
Reaction score
0
see


now on my iphone safari WONKY

iphone Crome and firefox, no problem at all

hhhhmmmm head scratcher

my destop is flawless

please help :)


THANKS!
 
Joined
Jul 4, 2023
Messages
366
Reaction score
41
Try to write down this part of html like that ...

HTML:
<article>

  <h2>Lorem ipsum ...?</h2>
  <div class="button"><a href="#">Button</a></div>

  <h2>Lorem ipsum ...?</h2>
  <div class="button"><a href="#">Button</a></div>

  <h2>Lorem ipsum ...?</h2>
  <div class="button"><a href="#">Button</a></div>

  <h2>Lorem ipsum ...?</h2>
  <div class="button"><a href="#">Button</a></div>

</article>

... and part of code of css as well

CSS:
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: rgb(106, 112, 196);
    color: #fff;
    position: relative;
    z-index: 9999;
}
.button {
  border: 5px solid;
  margin: auto;
  width: 50%;
  background-color: #e70c68;
  text-align: center;
  width: 12rem;
  font-size: 18px;
  position: relative;
  bottom: 40px;
}
.button a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Hamburger crisis 3
Non matching code 4
Overlaping confusion 2
Footer issues 3
Chrome not displaying uploaded HTML and CSS code 5
Div placement 2
.active 8
Placing a google map into my code 5

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top