Looking to showcase a company logo alongside the company name without using flexbox for compatibility with older browsers? Take a look at this simple HTML and CSS code snippet:
<table style="background-color: cadetblue;width:100%;padding:10px">
<tr>
<td rowspan="3" width="130">
<img src="Images/facebook.png" height="80" width="80" class="logo" />
</td>
</tr>
<tr>
<td class="name1">This is some text</td>
</tr>
<tr>
<td class="name2">This is some text1</td>
</tr>
</table>
Take a peek at how it appears on screen here:
https://i.sstatic.net/OYnzt.png
Seeking advice on minimizing the spacing between "This is some text" and "This is some text1"? Avoiding flexbox due to older device constraints, utilizing float instead. Here are the accompanying styles:
.logo {
transform: translateX(2em);
}
.name1 {
font-size: 25px;
color: #e9c46a;
}
.name2 {
font-size: 25px;
color: white;
}
</style>
.logo {
transform: translateX(2em);
}
.name1 {
font-size: 25px;
color: #e9c46a;
}
.name2 {
font-size: 25px;
color: white;
}
</style>
Your assistance is highly valued.
Hello @Lars,
I attempted the first two HTMl versions you provided, but the Outlook browser seems to be displaying them differently as shown below:
https://i.sstatic.net/Q5CL5.png
Is there a method to eliminate those black background lines?