Hey, I know this is probably a fairly simple issue but I've never coded a website before so go easy on me!
I have this page that I can't seem to get looking right on mobile AND desktop. It's either one or the other. I was hoping someone might have some insight as to how I can make the image on the left and the contact info on the right stack properly without just breaking up the text and/or making the image insanely small on a phone.
The other problem is that I want it all centred on the page. I mean, I can do "w3-third" for the smaller pictures at the bottom but when I use "w3-half" for the top it just aligns everything left. I want both elements to behave as though they are one on a desktop without an ugly spacing between them and stack on top of eachother on mobile.
<!DOCTYPE html><html><title>BJH Law</title><metacharset="UTF-8"><metaname="viewport"content="width=device-width, initial-scale=1"><linkrel="stylesheet"href="https://www.w3schools.com/w3css/4/w3.css"><linkrel="stylesheet"href="https://www.w3schools.com/lib/w3-theme-black.css"><linkrel="stylesheet"href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"><style>*{box-sizing: border-box;}
body {margin:0;}.center {margin:100px;width:75%;border:10px solid #009688;padding:100px;}.column {float: left;width:33.33%;padding:100px;}.row:after {content:"";display: table;clear: both;}@media screen and (max-width:600px){.column {width:100%;}}
img {/* filter: url(filters.svg#grayscale); Firefox 3.5+ */filter: gray;/* IE5+ */-webkit-filter: grayscale(1);/* Webkit Nightlies & Chrome Canary */-webkit-transition: all .8s ease-in-out;}img:hover {filter: none;-webkit-filter: grayscale(0);-webkit-transform: scale(1.01);}</style><bodyid="myPage"><!-- Navbar --><divclass="w3-top"><divclass="w3-bar w3-theme-d2 w3-left-align"><aclass="w3-bar-item w3-button w3-hide-medium w3-hide-large w3-right w3-hover-white w3-theme-d2"href="javascript:void(0);"onclick="openNav()"><iclass="fa fa-bars"></i></a><ahref="index.html"class="w3-bar-item w3-button w3-teal"><iclass="fa fa-home w3-margin-right"></i>Home</a><ahref="index.html#team"class="w3-bar-item w3-button w3-hide-small w3-hover-white">Team</a><ahref="index.html#contact"class="w3-bar-item w3-button w3-hide-small w3-hover-white">Contact</a><divclass="w3-dropdown-hover w3-hide-small"><buttonclass="w3-button"title="Notifications">Lawyers <iclass="fa fa-caret-down"></i></button><divclass="w3-dropdown-content w3-card-4 w3-bar-block"><ahref="Gary.html"class="w3-bar-item w3-button">Gary L. Bainbridge</a><ahref="James.html"class="w3-bar-item w3-button">James D. Jodouin</a><ahref="Dawn.html"class="w3-bar-item w3-button">Dawn Cheecham</a><ahref="Keir.html"class="w3-bar-item w3-button">Keir Vallance</a></div></div></div><!-- Navbar on small screens --><divid="navDemo"class="w3-bar-block w3-theme-d2 w3-hide w3-hide-large w3-hide-medium"><ahref="index.html#team"class="w3-bar-item w3-button">Team</a><ahref="index.html#contact"class="w3-bar-item w3-button">Contact</a></div></div><!-- Dawn Bio --><divclass=".center"><divclass="row"><divclass="column"><imgsrc="images/Lawyer02.jpg"alt="Boss"style="width:100%"class="w3-circle"></div><divclass="column"><h1>Dawn Cheecham</h1><pstyle="font-size:50;"> Dawn is a Dene lawyer from the Clearwater River Dene Nation. She works closely with various First Nations governments and organizations on a wide range of issues including the duty to consult, specific claims, governance initiatives and general advice.</p><p><iclass="fa fa-map-marker w3-text-teal w3-xlarge"></i> Saskatoon, SK</p><p><iclass="fa fa-envelope w3-text-teal w3-large"></i><ahref="mailto:dcheecham@bjhlaw.ca?"target="_top">dcheecham@bjhlaw.ca</a></p><p><iclass="fa fa-phone w3-text-teal w3-xlarge"></i><ahref="tel:306-664-2468">[306] 664-2468</a></p><p><i <iclass="fa fa-fax w3-text-teal w3-large"></i> [306] 664-2469</p></div><!-- Team Container --><divclass="w3-container w3-padding-64 w3-center"id="team"><divclass="w3-row"><br><divclass="w3-quarter"><ahref="Gary.html"><imgsrc="images/Lawyer01.jpg"alt="Boss"style="width:45%"class="w3-circle"></a><h3>GARY L. BAINBRIDGE, QC.</h3></div><divclass="w3-quarter"><ahref="James.html"><imgsrc="images/Lawyer03.jpg"alt="Boss"style="width:45%"class="w3-circle"></a><h3>JAMES D. JODOUIN</h3></div><divclass="w3-quarter"><ahref="Keir.html"><imgsrc="images/Lawyer04.jpg"alt="Boss"style="width:45%"class="w3-circle"></a><h3>KEIR VALLANCE</h3></div></div></div><!-- Footer --><footerclass="w3-container w3-padding-10 w3-theme-d1 w3-center"><p>Copyright <ahref="http://www.bjhlaw.ca/"target="_blank">BJH LAW 2019</a></p><divstyle="position:relative;bottom:100px;z-index:1;"class="w3-tooltip w3-right"><spanclass="w3-text w3-padding w3-teal w3-hide-small">Go To Top</span><aclass="w3-button w3-theme"href="#myPage"><spanclass="w3-xlarge"><iclass="fa fa-chevron-circle-up"></i></span></a></div></footer><script>// Script for side navigationfunction w3_open(){var x = document.getElementById("mySidebar");
x.style.width ="300px";
x.style.paddingTop ="10%";
x.style.display ="block";}// Close side navigationfunction w3_close(){
document.getElementById("mySidebar").style.display ="none";}// Used to toggle the menu on smaller screens when clicking on the menu buttonfunction openNav(){var x = document.getElementById("navDemo");if(x.className.indexOf("w3-show")==-1){
x.className +=" w3-show";}else{
x.className = x.className.replace(" w3-show","");}}</script></body></html>
Responsive container/Centering issue.
in HTML/XHTML
Posted
Hey, I know this is probably a fairly simple issue but I've never coded a website before so go easy on me!
I have this page that I can't seem to get looking right on mobile AND desktop. It's either one or the other. I was hoping someone might have some insight as to how I can make the image on the left and the contact info on the right stack properly without just breaking up the text and/or making the image insanely small on a phone.
Here's a screenshot of the page: https://imgur.com/a/DLC2sjR
The other problem is that I want it all centred on the page. I mean, I can do "w3-third" for the smaller pictures at the bottom but when I use "w3-half" for the top it just aligns everything left. I want both elements to behave as though they are one on a desktop without an ugly spacing between them and stack on top of eachother on mobile.
Yeah the codes a mess please don't make fun lol.