Currently, I am working with Bootstrap 4 to create a component that includes two tiles. Each tile has an icon image on the left side and a hyperlink on the right side. On desktop view, the tiles should be displayed horizontally and vertically centered. However, when the view changes to mobile, the image icon should stack over the link while remaining vertically centered.
<!doctype html>
<html lang="en>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn53...
I have encountered some issues:
- How can I vertically center the image over the text in mobile mode?
- The `service-header-tile` div does not seem to act as a parent element of `leftContent` and `rightContent`. When inspected, this div lacks width or height. What could be causing this issue?
- Any suggestions for enhancing the code are welcome.
Thank you, Bee