I am currently working on designing a HTML/CSS layout for a Kiosk-style website.
However, I am encountering some challenges in getting the alignment of images and text to appear exactly as desired.
The goal is to have the logo and header remain fixed in the same position on every page, while potentially expanding the number of buttons displayed on the screen.
For reference, you can view an example illustration here: Example Image, where:
- The black box represents the logo
- The blue boxes represent individual buttons
Here is the current HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel="stylesheet" type="text/css" href="style.css">
<html>
<body background="background.png">
<div id="logo">
<img src="logo.png">
</div>
<br>
<div id="icons1">
<img src="button-wmcweb.png"></a>
</div>
<div id="icons1">
<img src="button-appointments.png"></a>
</div>
<div id="icons1">
<img src="button-prescriptions.png"></a>
</div>
<br>
<div id="icons2">
<img src="button-somccg.png"></a>
</div>
<div id="icons2">
<img src="button-patient.png"></a>
</div>
<div id="icons2">
<img src="button-nhschoices.png"></a>
</div>
</body>
</html>
CSS Styles:
body {
text-align:center;
}
#mainContainer {
margin:0 auto;
}
#icons1 {
display: inline-block;
}
#icons2 {
display: inline-block;
}
I'm wondering if using inline blocks is the most effective approach for achieving my design goals?
Any assistance on this matter would be greatly appreciated.