How to fix Table is upside down - html

I made a table in my .html file but after checking the page my table was upside down ex my first row is the last row.
#class-container {
position: relative;
width: 80%;
top: 5%;
margin: auto;
background: white;
padding-top: 100px;
clear: both;
}
<div id="class-container">
<table cellpadding="10px" width="100%">
<tr>
<th>
<h1>
Avantaje
</h1>
</th>
<th>
<h1>
Dezavantaje
</h1>
</th>
</tr>
<tr>
<ul type="square">
<li>
<h2>
Consumul redus
</h2>
</li>
<li>
<h2>
Poluarea aproape de zero in afara productiei
</h2>
</li>
<li>
<h2>
Eficienta/randament foarte mare
</h2>
</li>
<li>
<h2>
Accelerare instanta
</h2>
</li>
</ul>
</tr>
</table>
</div>
And the funny thing is that I have another table in another .html file whith the same div and I don't have a problem with that table
I browsed the web but I couldn't find an answer.

You should wrap your ul in a td which should put the headers up back where you expect them.
#class-container {
position: relative;
width: 80%;
top: 5%;
margin: auto;
background: white;
padding-top: 100px;
}
<div id="class-container">
<table cellpadding="10px" width="100%">
<tr>
<th>
<h1>
Avantaje
</h1>
</th>
<th>
<h1>
Dezavantaje
</h1>
</th>
</tr>
<tr>
<td>
<ul type="square">
<li>
<h2>
Consumul redus
</h2>
</li>
<li>
<h2>
Poluarea aproape de zero in afara productiei
</h2>
</li>
<li>
<h2>
Eficienta/randament foarte mare
</h2>
</li>
<li>
<h2>
Accelerare instanta
</h2>
</li>
</ul>
</td>
<td></td>
</tr>
</table>
</div>

Related

List items dots (<ul>) and numbers(<o>) not showing and unable to remove (overflow-x: hidden) from my root in CSS

I am currently working on a web page and I have encountered an issue with my list items. The dots and numbers that usually appear next to each list item are not showing up. Additionally, when i remove the overflow-x: hidden; property in my CSS the list items numbers and dots show immediately, the texts are showing all the time though.
**THIS IS THE HTML**
<body>
<main>
<section>
<div>
<h2 id="getting-started" class="heading-color mt-5">
GETTING STARTED
</h2>
<p>
There are 2 ways to join Fyre Skin Brand Partnership Program.
</p>
<ol>
<li>
Join directly from the Fyre Skin website by clicking the
link.
<a href="https://brandpartner.fyreskin.com.ng/register"
>Register</a
>
</li>
<li>
Join using the link of a brand partner that recommended you
and they automatically become you Up-line partner and you
their Down-line partner.
</li>
</ol>
<p>
If you decide to join, the startup registration is 25,000
Naira with a monthly renewal of 10,000 Naira.
</p>
<p>Your monthly subscription gives you access to</p>
<ul>
<li>
Your own back office dashboard were you can see your
commission, payments, pending payments, bonuses, sales made
using your link, clients who bought using your link, team
members profile, team members sales and profit and marketing
tools .
</li>
<li>
Your own personalise Fyre Skin website that your potential
clients can shop with.
</li>
<li>
Your personalised brand partnership link for potential
clients .
</li>
<li>
Your personalised Networking link for building your own
team.
</li>
<li>Growth and development training for personal growth.</li>
<li>A community of entrepreneurs that you can learn from.</li>
</ul>
<p>
<span class="fw-bold">How to get started - </span>For us at
Fyre Skin convenience is everything that why we built a
website that’s swift and easy to access by both brand partners
and clients.
</p>
<ol>
<li>
After signing up and creating an account, login into your
back office the click copy
<span class="fw-bold">‘default brand partners link’</span>.
Share your link on
<span class="fw-bold">social platforms</span> that can be
visible potential clients.
</li>
<img src="" />
<div>
<ol>
<li>Create a target audience</li>
<li>
Set a daily goal target that includes number of people and
how much he want to make.
</li>
<li>Set the amount of times he want to work a week.</li>
<li>Products and services he want to market (optional)</li>
</ol>
</div>
<p>Target: 40% male, 60% female</p>
<p>Goals: 4 people a day, ₦50,000 a day</p>
<p>Work: 4 times a week</p>
<p>
<span>
*lets assume Ade already did his homework by attending our
webinars, where he learnt how to market like a pro and he
already posted his business links on every social platform
and uses his online messaging apps.
</span>
</p>
<div>
<div class="heading-color mt-5">
<h5 style="margin-left: 10px">DAY 1</h5>
</div>
<p>
Ade’s target for the day is 4 people and he got 2 men and 2
women.
</p>
<p><span>MEN</span></p>
<p>1st man did deep tissue massage and jelly pedicure</p>
<p>
2nd man never left his house, he just order online 1 ultra
shade Creamy gel and 1 Lightening glow milk
</p>
<p><span>WOMEN</span></p>
<p>
1st woman did a brightening facials and braided her hair
</p>
<p>
2nd woman did a botanical pedicure and botanical manicure
</p>
<div>
<table
class="table table-responsive table-bordered border-dark"
>
<tr class="th">
<th>MEN</th>
<th>PRICE</th>
<th>WOMEN</th>
<th>PRICE</th>
</tr>
<tr>
<td>Deep Tissues massage</td>
<td>12,000</td>
<td>Brightening facials</td>
<td>9,000</td>
</tr>
<tr>
<td>Jelly Pedicure</td>
<td>5,000</td>
<td>Corn row</td>
<td>5,000</td>
</tr>
<tr>
<td>Ultra shade creamy gel</td>
<td>5,000</td>
<td>Botanical pedicure</td>
<td>5,000</td>
</tr>
<tr>
<td>Lightening glow milk</td>
<td>10,000</td>
<td>Botanical manicure</td>
<td>3,000</td>
</tr>
<tr>
<td>TOTAL</td>
<td>32,000</td>
<td>TOTAL</td>
<td>22,000</td>
</tr>
</table>
<div class="heading-color "><h5 class="total">OVERALL TOTAL =54,000</h5></div>
</div>
</div>
<div>
<div class="heading-color mt-5">
<h5 style="margin-left: 10px">DAY 2</h5>
</div>
<p>Ade repeated same target as day 1.</p>
<p>
4 people but this time his message only attracted 4 women
who just wanted to do the best friends package and relax
themselves.
</p>
<p><span>WOMEN</span></p>
<p>2 best-friends package comprises of 3 services each -</p>
<p>
deep cleansing facials, Swedish massage and botanical
pedicure
</p>
<div>
<table
class="table table-responsive table-bordered border-dark"
>
<tr class="th">
<th>WOMEN</th>
<th>PRICE</th>
</tr>
<tr>
<td>Best friend package</td>
<td>42,000</td>
</tr>
<tr>
<td>Best friend package</td>
<td>42,000</td>
</tr>
</table>
<div class="heading-color">
<h5 class="total" >OVERALL TOTAL =84,000</h5>
</div>
</div>
</div>
<div>
<div class="heading-color mt-5">
<h5 style="margin-left: 10px">DAY 3</h5>
</div>
<p>
Same target, same goal. 4 people. Repeated strategy brings
repeated results
</p>
</body>
</html>
MY CSS
#import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
/* Custom color variables */
*{
box-sizing: border-box;
}
body{
overflow-x: hidden;
}
:root {
--primary: #e67e22;
--secondary: #16a085;
--success: #2ecc71;
--danger: #e74c3c;
--warning: #F0FF42;
--info: #3498db;
--light: #f5f5f5;
--dark: #2c3e50;
}
.container
{
font-weight: 400;
}
img{
width: auto;
border-radius: 1rem;
}
a{
font-family: 'Roboto', sans-serif;
}
p{
text-align: left;
}
button {
height: 50px;
}
.header{
margin-left: 50px;
}
.sidebar{
background-color: #F0FF42;
}
.heading-color{
background-color: #F0FF42;
}
span{
font-weight: bold;
}
.th{
background-color: #F0FF42;
}
li{
font-weight: 600;
}
td{
font-weight: 600;}
.total{
text-align: center;
}
#media (max-width : 450px){
.container{
width: 375px;
margin: 2rem auto;
}
}
I have tried several solutions such as using different CSS selectors to target the list items, and also tried to override the overflow-x property with overflow-x: visible; but it gives me an overflow on my webpage. I have also checked for any other conflicting CSS styles that may be causing the issue, but I have not found any.
The list items' numbers and dots are showing in my snippet.
Try this:
#import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
/* Custom color variables */
*{
box-sizing: border-box;
}
body{
overflow-x: hidden;
}
:root {
--primary: #e67e22;
--secondary: #16a085;
--success: #2ecc71;
--danger: #e74c3c;
--warning: #F0FF42;
--info: #3498db;
--light: #f5f5f5;
--dark: #2c3e50;
}
.container
{
font-weight: 400;
}
img{
width: auto;
border-radius: 1rem;
}
a{
font-family: 'Roboto', sans-serif;
}
p{
text-align: left;
}
button {
height: 50px;
}
.header{
margin-left: 50px;
}
.sidebar{
background-color: #F0FF42;
}
.heading-color{
background-color: #F0FF42;
}
span{
font-weight: bold;
}
.th{
background-color: #F0FF42;
}
li{
font-weight: 600;
}
td{
font-weight: 600;
}
.total{
text-align: center;
}
#media (max-width : 450px){
.container{
width: 375px;
margin: 2rem auto;
}
}
<html>
<body>
<main>
<section>
<div>
<h2 id="getting-started" class="heading-color mt-5">GETTING STARTED</h2>
<p>There are 2 ways to join Fyre Skin Brand Partnership Program.</p>
<ol>
<li>Join directly from the Fyre Skin website by clicking the link.
Register
</li>
<li>Join using the link of a brand partner that recommended you and they automatically become you Up-line partner and you their Down-line partner.
</li>
</ol>
<p>If you decide to join, the startup registration is 25,000 Naira with a monthly renewal of 10,000 Naira.</p>
<p>Your monthly subscription gives you access to</p>
<ul>
<li>Your own back office dashboard were you can see your commission, payments, pending payments, bonuses, sales made using your link, clients who bought using your link, team members profile, team members sales and profit and marketing tools.</li>
<li>Your own personalise Fyre Skin website that your potential clients can shop with.</li>
<li>Your personalised brand partnership link for potential clients.</li>
<li>Your personalised Networking link for building your own team.</li>
<li>Growth and development training for personal growth.</li>
<li>A community of entrepreneurs that you can learn from.</li>
</ul>
<p><span class="fw-bold">How to get started - </span>For us at Fyre Skin convenience is everything that why we built a website that’s swift and easy to access by both brand partners and clients.</p>
<ol>
<li>After signing up and creating an account, login into your back office the click copy <span class="fw-bold">‘default brand partners link’</span>. Share your link on <span class="fw-bold">social platforms</span> that can be visible potential clients.</li>
<img src="" />
<div>
<ol>
<li>Create a target audience</li>
<li>Set a daily goal target that includes number of people and how much he want to make.</li>
<li>Set the amount of times he want to work a week.</li>
<li>Products and services he want to market (optional)</li>
</ol>
</div>
<p>Target: 40% male, 60% female</p>
<p>Goals: 4 people a day, ₦50,000 a day</p>
<p>Work: 4 times a week</p>
<p>
<span>*lets assume Ade already did his homework by attending our webinars, where he learnt how to market like a pro and he already posted his business links on every social platform and uses his online messaging apps.
</span>
</p>
<div>
<div class="heading-color mt-5">
<h5 style="margin-left: 10px">DAY 1</h5>
</div>
<p>Ade’s target for the day is 4 people and he got 2 men and 2 women.</p>
<p><span>MEN</span></p>
<p>1st man did deep tissue massage and jelly pedicure</p>
<p>2nd man never left his house, he just order online 1 ultra shade Creamy gel and 1 Lightening glow milk</p>
<p><span>WOMEN</span></p>
<p>1st woman did a brightening facials and braided her hair</p>
<p>2nd woman did a botanical pedicure and botanical manicure</p>
<div>
<table class="table table-responsive table-bordered border-dark">
<tr class="th">
<th>MEN</th>
<th>PRICE</th>
<th>WOMEN</th>
<th>PRICE</th>
</tr>
<tr>
<td>Deep Tissues massage</td>
<td>12,000</td>
<td>Brightening facials</td>
<td>9,000</td>
</tr>
<tr>
<td>Jelly Pedicure</td>
<td>5,000</td>
<td>Corn row</td>
<td>5,000</td>
</tr>
<tr>
<td>Ultra shade creamy gel</td>
<td>5,000</td>
<td>Botanical pedicure</td>
<td>5,000</td>
</tr>
<tr>
<td>Lightening glow milk</td>
<td>10,000</td>
<td>Botanical manicure</td>
<td>3,000</td>
</tr>
<tr>
<td>TOTAL</td>
<td>32,000</td>
<td>TOTAL</td>
<td>22,000</td>
</tr>
</table>
<div class="heading-color ">
<h5 class="total">OVERALL TOTAL =54,000</h5>
</div>
</div>
</div>
<div>
<div class="heading-color mt-5">
<h5 style="margin-left: 10px">DAY 2</h5>
</div>
<p>Ade repeated same target as day 1.</p>
<p>4 people but this time his message only attracted 4 women who just wanted to do the best friends package and relax themselves.</p>
<p><span>WOMEN</span></p>
<p>2 best-friends package comprises of 3 services each -</p>
<p>deep cleansing facials, Swedish massage and botanical pedicure</p>
<div>
<table class="table table-responsive table-bordered border-dark">
<tr class="th">
<th>WOMEN</th>
<th>PRICE</th>
</tr>
<tr>
<td>Best friend package</td>
<td>42,000</td>
</tr>
<tr>
<td>Best friend package</td>
<td>42,000</td>
</tr>
</table>
<div class="heading-color">
<h5 class="total" >OVERALL TOTAL =84,000</h5>
</div>
</div>
</div>
<div>
<div class="heading-color mt-5">
<h5 style="margin-left: 10px">DAY 3</h5>
</div>
<p>
Same target, same goal. 4 people. Repeated strategy brings
repeated results
</p>
</body>
</html>

CSS text align side by side and vertical align

I have two columns of text side by side. One is right aligned and the other is left aligned.
Here is what I have so far:
.alignleft {
float: left;
}
.alignright {
float: right;
}
.list-unstyled {
padding-left: 0;
list-style: none;
}
<ul class="store-opening-hours list-unstyled">
<li>
<div style="text-align:left;">
Monday
<span style="float:right;">9:00 AM - 5:00 PM</span>
</div>
</li>
<li></li>
<li>
<div style="text-align:left;">
Tuesday
<span style="float:right;">9:00 AM - 5:00 PM</span>
</div>
</li>
<li></li>
<li>
<div style="text-align:left;">
Wednesday
<span style="float:right;">9:00 AM - 5:00 PM</span>
</div>
</li>
<li></li>
<li>
<div style="text-align:left;">
Thursday
<span style="float:right;">8:30 AM - 11:00 AM</span>
</div>
</li>
<li>
<div style="text-align:right;">
12:30 PM - 2:00 PM
</div>
</li>
<li>
<b>
<div style="text-align:left;">
Friday
<span style="float:right;">9:00 AM - 2:30 PM</span>
</div>
</b>
</li>
<li>
<b>
<div style="text-align:right;">
6:00 PM - 9:00 PM
</div>
</b>
</li>
<li>
<div style="text-align:left;">
Saturday
<span style="float:right;">9:00 AM - 5:00 PM</span>
</div>
</li>
<li></li>
<li>
<div style="text-align:left;">
Sunday
<span style="float:right;">Closed</span>
</div>
</li>
<li></li>
</ul>
Here is the Jsfiddle link JsFiddle link.
The example above is side by side but the right align text is not vertically aligned as seen in this image:
How can I achieve this?
You can use table instead
<table>
<tr>
<td width="200">Monday</td>
<td>9:00AM - 5:00PM</td>
</tr>
<tr>
<td>Tuesday</td>
<td>9:00AM - 5:00PM</td>
</tr>
<tr>
<td>Wednesday</td>
<td>9:00AM - 5:00PM</td>
</tr>
<tr>
<td>Thursday</td>
<td>8:30AM - 11:00AM</td>
</tr>
<tr>
<td rowspan="2"><b>Friday</b></td>
<td><b>9:00AM - 2:30PM</b></td>
</tr>
<tr>
<td><b>6:00PM - 9:00PM</b></td>
</tr>
<tr>
<td>Saturday</td>
<td>9:00AM - 5:00PM</td>
</tr>
<tr>
<td>Sunday</td>
<td>Closed</td>
</tr>
</table>
Working Demo
<table>
<tr>
<td width="200">Monday</td>
<td>9:00AM - 5:00PM</td>
</tr>
<tr>
<td>Tuesday</td>
<td>9:00AM - 5:00PM</td>
</tr>
<tr>
<td>Wednesday</td>
<td>9:00AM - 5:00PM</td>
</tr>
<tr>
<td>Thursday</td>
<td>8:30AM - 11:00AM</td>
</tr>
<tr>
<td rowspan="2"><b>Friday</b></td>
<td><b>9:00AM - 2:30PM</b></td>
</tr>
<tr>
<td><b>6:00PM - 9:00PM</b></td>
</tr>
<tr>
<td>Saturday</td>
<td>9:00AM - 5:00PM</td>
</tr>
<tr>
<td>Sunday</td>
<td>Closed</td>
</tr>
</table>
How about using table as display properties?
.list-unstyled {
display: table;
padding: 0;
margin: 0;
list-style-type: none;
}
.list-unstyled li {
display: table-row;
}
.list-unstyled li .weekday {
display: table-cell;
width: 400px;
text-align: left;
vertical-align: middle;
}
.list-unstyled li .time {
display: table-cell;
width: 200px;
text-align: left;
}
<ul class="store-opening-hours list-unstyled">
<li>
<div class="weekday">
Monday</div>
<div class="time">9:00 AM - 5:00 PM
</div>
</li>
<li>
<div class="weekday">
Tuesday
</div>
<div class="time">9:00 AM - 5:00 PM
</div>
</li>
<li>
<div class="weekday">
Wednesday
</div>
<div class="time">9:00 AM - 5:00 PM</div>
</li>
<li>
<div class="weekday">
Thursday
</div>
<div class="time">8:30 AM - 11:00 AM<br>12:30 PM - 2:00 PM</div>
</li>
<li>
<div class="weekday">
<strong>Friday</strong>
</div>
<div class="time">9:00 AM - 2:30 PM<br><strong>6:00 PM - 9:00 PM</strong></div>
</li>
<li>
<div class="weekday">
Saturday
</div>
<div class="time">9:00 AM - 5:00 PM
</div>
</li>
<li>
<div class="weekday">
Sunday
</div>
<div class="time">Closed
</div>
</li>
</ul>
Maybe you could do this by adding span class to the timing and days. These spans have a fixed width so that the text aligned.
<ul class="store-opening-hours list-unstyled">
<li>
<div>
<span class="days">Monday</span>
<span class="timings">9:00 AM - 5:00 PM</span>
</div>
</li>
<li>
<div>
<span class="days">Tuesday</span>
<span class="timings">9:00 AM - 5:00 PM</span>
</div>
</li>
<li>
<div>
<span class="days">Wednesday</span>
<span class="timings">9:00 AM - 5:00 PM</span>
</div>
</li>
<li>
<div>
<span class="days">Thursday</span>
<span class="timings">8:30 AM - 11:00 AM</span>
</div>
</li>
<li>
<div>
<span class="days"><br></span>
<span class="timings">12:30 PM - 2:00 PM</span>
</div>
</li>
<li>
<b>
<div>
<span class="days">Friday</span>
<span class="timings">9:00 AM - 2:30 PM</span>
</div>
</b>
</li>
<li>
<b>
<div>
<span class="days"><br></span>
<span class="timings"> 6:00 PM - 9:00 PM</span>
</div>
</b>
</li>
<li>
<div>
<span class="days">Saturday</span>
<span class="timings">9:00 AM - 5:00 PM</span>
</div>
</li>
<li>
<div>
<span class="days">Sunday</span>
<span class="timings">Closed</span>
</div>
</li>
</ul>
.list-unstyled {
padding-left: 0;
list-style: none;
}
.days {
width: 75%;
float: left;
text-align: left;
}
.timings {
width: 25%;
float: right;
text-align: left;
}
Working code

How do I replace a table with text in CSS?

So for an assignment of mine I have to use CSS Media Queries to display two webpages depending on the size of the window. I have that done, but for the mobile phone version, I have to replace the tables on the menu page with text, which describes the menu. How do I do this in CSS?
#media screen and (min-width: 37.5em) and (max-width: 64em){
header{
padding-top: 1em;
}
main{
padding-top: 0.1em;
padding-bottom: 0.1em;
padding-left: 1em;
padding-right: 1em;
font-size: 90%;
}
h1{
font-size: 1.5em;
}
nav li{
display: block;
margin: 0;
border-bottom: 1px solid #FFE4C4;
}
nav li::first-line{
border-top: 1px solid #FFE4C4
}
nav a{
display: block;
}
#wrapper img{
background-image: none;
height: 0;
}
table{
display: none;
}
#address{
color: #191970;
font-size: 92%;
font-family: Calibri;
background-image: none;
border-color: #FFE4C4;
border-radius: 2px;
border-style: none;
width: 200px;
margin-top: 50px;
}
table.Coffees:after{
content: "Our Coffees";
content: "Our coffees are well-known throughout the region as bold and flavorful. We offer many different types of coffees, one of which is sure to satisfy your taste. Prices start at $2.00 per cup."
}
table.Tea:after{
content: "Our Teas";
content: "Our teas are hand-selected from around the world to bring you a wide variety of possibilities. We specialize in flavorful afternoon teas as well as a wide assortmentof exotic teas. Stop in and try a cup! Prices start $2.00 per cup."
}
table.Snacks:after{
content: "Our Snacks";
content: "We offer a wide variety of foods ranging from simple snacks to complete inners. Our specialties are organic salads and fresh seafood. Try our fried clam strips and fish strips. The locals swear these are the bestq you'll find anywhere. Prices are seasonal, but always a real deal."
}
}
This is what I have for that part of my CSS file. I heard the content property was a way to do it, but I don't see anything.
Thank you in advance!
Upon request, here are the html files for the index page and the menu page respectively:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The Lighthouse Bistro</title>
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="stylesheet" href="bistro.css">
</head>
<body>
<div id="wrapper">
<header>
<h1>The Lighthouse Bistro</h1>
</header>
<nav>
<ul>
<li class="navlist">
Home
</li>
<li class="navlist">
Our Menu
</li>
<li class="navlist">
Entertainment Schedule
</li>
<li class="navlist">
Reservations
</li>
</ul>
<div id="address">
The Lighthouse Bistro
<br>
#27 Lighthouse Road
<br>
Mackinac City, Michigan 49701
<br>
<br>
888-555-5555
<br>
</div>
</nav>
<div role="main">
<img src="images/oldmackinaclight.jpg" alt="Old Mackinac Light" height="350" width="250">
<h3>Enjoy Fine Dining and Entertainment at Lighthouse Point</h3>
<p>The Lighthouse Bistro offers fine dining and entertainment a stones throw from the Old Mackinac Point Lighthouse on the
Straits of Mackinac. The lighthouse was built in 1892 as a sentinel for vessels entering the Straits of Mackinac. Open year
round. Yes, even in the winter! Stop in for a mug of one of our specialty coffees after your hike.</p>
<ul>
<li>Speciality coffees and teas</li>
<li>Bagels, Muffins, and Organic Snack</li>
<li>Clam Strips, Oysters, and Fresh Fish served daily</li>
<li>Music and Poetry Readings</li>
<li>Open Mic Night Every Friday starting at 8:00pm</li>
</ul>
</div>
<footer>
<br>
<em>Copyright © 2018 The Lighthouse Bistro</em>
<br>
<em>ourfirstname#yourlastname.com</em>
</footer>
</div>
</body>
</html>
Here is the menu:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The Lighthouse Bistro</title>
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="stylesheet" href="bistro.css">
</head>
<body>
<div id="wrapper">
<header>
<h1>The Lighthouse Bistro</h1>
</header>
<nav>
<ul>
<li class="navlist">
Home
</li>
<li class="navlist">
Our Menu
</li>
<li class="navlist">
Entertainment Schedule
</li>
<li class="navlist">
Reservations
</li>
</ul>
<div id="address">
The Lighthouse Bistro
<br>
#27 Lighthouse Road
<br>
Mackinac City, Michigan 49701
<br>
<br>
888-555-5555
<br>
</div>
</nav>
<div role="main">
<table class="Coffees">
<caption>Some of Our Coffees</caption>
<tr>
<th id="Coffee">Coffee</th>
<th id="Desc1">Description</th>
<th id="Price1">Price</th>
<th id="Image1">Image</th>
</tr>
<tr>
<td headers="Coffee" class="center">Just Java</td>
<td headers="Desc1">The regular house blend, decaffinated coffee, or the flavor of the day</td>
<td headers="Price1" class="center">Endless cup $2.00</td>
<td headers="Image1" class="center"><img src="images/coffee1.jpg" alt="coffee1" width="100" height="75"></td>
</tr>
<tr class="secrow">
<td headers="Coffee" class="center">Cafe au Lait</td>
<td headers="Desc1">House blended coffee infused into a smooth steamed milk.</td>
<td headers="Price1" class="center">Single $2.00, Double $3.00</td>
<td headers="Image1" class="center"><img src="images/coffee2.jpg" alt="coffee2" width="100" height="75"></td>
</tr>
<tr>
<td headers="Coffee" class="center">Iced Cappucino</td>
<td headers="Desc1">Sweetened espresso blended with icy-cold milk and served in a chilled glass</td>
<td headers="Price1" class="center">Single $4.75, Double $5.75, Wow! $7.75</td>
<td headers="Image1" class="center"><img src="images/coffee3.jpg" alt="coffee3" width="100" height="75"></td>
</tr>
<tr class="secrow">
<td headers="Coffee" class="center">Espresso</td>
<td headers="Desc1">Our house blend espresso - the best!</td>
<td headers="Price1" class="center">Single $5.00, Double $7.50</td>
<td headers="Image1" class="center"><img src="images/espresso1.png" alt="espresso" width="100" height="75"></td>
</tr>
</table class="Teas">
<br>
<table>
<caption>Some of Our Teas</caption>
<tr>
<th id="Tea" scope="col">Tea</th>
<th id="Desc2" scope="col">Description</th>
<th id="Price2" scope="col">Price</th>
<th id="Image2" scope="col">Image</th>
</tr>
<tr>
<td headers="Tea" class="center">Breakfast Teas</td>
<td headers="Desc2">Darjeeling, English Breakfast, Queen Anne, Green tea with lemon</td>
<td headers="Price2" class="center">Endless cup $2.00</td>
<td headers="Image2" class="center"><img src="images/tea1.jpg" alt="tea1" width="100" height="75"></td>
</tr>
<tr class="secrow">
<td headers="Tea" class="center">Afternoon Teas</td>
<td headers="Desc2">Lemon, Pure Peppermint, Earl Grey, China Oolong</td>
<td headers="Price2" class="center">Endless cup $3.00</td>
<td headers="Image2" class="center"><img src="images/tea2.jpg" alt="tea2" width="100" height="75"></td>
</tr>
<tr>
<td headers="Tea" class="center">Exotic Teas</td>
<td headers="Desc2">Orange & Cinnammon Spice, Camomile, Honey & Vanilla, Pomegranate & Raspberry</td>
<td headers="Price2" class="center">Single cup $3.50</td>
<td headers="Image2" class="center"><img src="images/tea3.jpg" alt="tea3" width="100" height="75"></td>
</tr>
</table>
<br>
<table class="Snacks">
<caption>Snacks</caption>
<tr>
<th id="Snack">Snack</th>
<th id="Desc3">Description</th>
<th id="Price3">Price</th>
<th id="Image3">Image</th>
</tr>
<tr>
<td headers="Snack" class="center">Bagels and Muffins</td>
<td headers="Desc3">Bagels, Plain muffins, Blueberry muffins, Chocolate muffins, and much more</td>
<td headers="Price3" class="center">Small $2.00, Large $3.00</td>
<td headers="Image3" class="center"><img src="images/muffin1.jpg" alt="muffin1" width="100" height="75"></td>
</tr>
<tr class="secrow">
<td headers="Snack" class="center">Organic Snacks</td>
<td headers="Desc3">Organic chips with sea salt, Organic salads</td>
<td headers="Price3" class="center">Prices vary</td>
<td headers="Image3" class="center"><img src="images/salad1.jpg" alt="muffin2" width="100" height="75"></td>
</tr>
<tr>
<td headers="Snack" class="center">Fresh Fish</td>
<td headers="Desc3">Clam strips, Fried Fish Strips, Fried Oysters, and many other seasonal selections</td>
<td headers="Price3" class="center">Prices vary by season $5.75-$15.75</td>
<td headers="Image3" class="center"><img src="images/clamstrips.png" alt="muffin3" width="100" height="75"></td>
</tr>
</table>
</div>
<br>
<footer>
<em>Copyright © 2018 The Lighthouse Bistro</em>
<br>
<em>yourfirstname#yourlastname.com</em>
</footer>
</div>
</body>
</html>

Stylizing a table with CSS?

I have created a table in which I will have an image of a person and information about them in the cell next to the image. My code is below
<table border="0" cellpadding="0" cellspacing="0" width="50%">
<tr>
<td class="bg" colspan="2">JEFF DAVIS</td>
</tr>
<tr>
<td width="24%">
<img height="150" src="file:///C|/Users/Daniel/Desktop/photo1.jpg" width="150">
</td>
<td width="76%">
<p>Name: Jeff Davis</p>
<p>Favourite Color: Yellow</p>
<p>Favourite Animal: My Cat</p>
<p>Favourite Super Hero: Superman</p>
</td>
</tr>
<tr>
<td colspan="2">Facebook Twitter Email</td>
</tr>
</table>
In the cell where I keep the information, or 'profile' of the person I want to have bullet points in two columns. Could somebody inform me of how to do this?
Also I would like the top cell, with the name in capitals to have rounded edges, I believe I can do this with CSS but I am a complete novice.
Here is a jsfiddle of your example using dots u mentioned.
<ul>
<li><p>Name: Jeff Davis</p></li>
<li><p>Favourite Color: Yellow</p></li>
<li><p>Favourite Animal: My Cat </p></li>
<li><p>Favourite Super Hero: Superman</p></li>
</ul>
http://jsfiddle.net/kzgfu/
Is this want u ment?
P.s.: I dont quite understand what u mean with the capitals to have rounded edges. Could u show a picture of what u are meaning?
Rounded Cell from Danko http://jsfiddle.net/kzgfu/1/
And another rounded cell from me: http://jsfiddle.net/kzgfu/2/
I think this is what he means by rounded corners, not sure though
table td:nth-child(1){
background-color:#333;
color:#fff;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
Here's a fiddle example using divs (I know it's not what you asked, but just so you have different options) and two columns for the bullet points.
http://jsfiddle.net/jprZ7
<div style="width:50%;">
<div style="width:100%; text-align:center; border-radius: 15px; background-color:#CCC;">
JEFF DAVIS
</div>
<div style="width:24%; float:left;">
<img src="file:///C|/Users/Daniel/Desktop/photo1.jpg" width="150" height="150" />
</div>
<div style="width:76%; float:left;">
<ul style="float:left;">
<li>
<p>Name: Jeff Davis</p>
</li>
<li>
<p>Favourite Color: Yellow</p>
</li>
</ul>
<ul style="float:left;">
<li>
<p>Favourite Animal: My Cat</p>
</li>
<li>
<p>Favourite Super Hero: Superman</p>
</li>
</ul>
</div>
</div>
There you go
JsFiddle Bullet points and round corners around capitals
CSS:
.bg {
text-align:center;
background:green;
border-radius:10px 10px 0 0;}
HTML:
<li> <p>Favourite Color: Yellow</p> </li>
<li> <p>Favourite Animal: My Cat </p> </li>
<li> <p>Favourite Super Hero: Superman</p> </li>
<li> <p> Facebook Twitter Email</p> </li> </td>
http://jsfiddle.net/Ldbu4/1/
<table width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th colspan="2" class="bg">JEFF DAVIS</th>
</tr>
<tr>
<td width="24%"><img src="file:///C|/Users/Daniel/Desktop/photo1.jpg" width="150" height="150" /></td>
<td width="76%"><p>Name: Jeff Davis</p>
<ul>
<li>Favourite Color: Yellow</li>
<li>Favourite Animal: My Cat </li>
<li>Favourite Super Hero: Superman</li>
</ul>
</td>
</tr>
<tr>
<td colspan="2">Facebook Twitter Email</td>
</tr>
and css
table
{
border-collapse:collapse;
}
td
{
border: 1px solid black;
}
td
{
padding: 10px;
}
th
{
background-color:#333;
color:#fff;
border-radius: 10px 10px 0 0;
}

Page layout different in Firefox

I'm having problem getting the same results in Firefox as in Chrome.
In Chrome, layout is as I want it to be, while in Firefox it seems different.
here is the markup:
<body>
<div id="big_wrapper">
<header id="top_header">
<h1>Maple 16</h1>
</header>
<div id="box">
<aside id="sidebar">
<table cellpadding="0" cellspacing="15px">
<col span="7" width="160px" />
<row span="7" width="160px" />
<tr>
<td colspan="1" bgcolor="#40b040">
</td>
</tr>
<tr>
<td colspan="1" bgcolor="#ffbf00" class="img">
<img src="../images/buttons/shop.png">
</td>
</tr>
<tr>
<td colspan="1" bgcolor="#4040ff" class="img">
<img src="../images/buttons/download.png">
</td>
</tr>
</table>
</aside>
<section>
<article id="maple_article" dir="rtl" align="right">
<h1>מהי Maple?</h1><br />
<p>
Maple היא תוכנה לפתרון בעיות מתמטיות הנדסיות המשלבת יכולות סימבוליות, ממשק גרפי נוח לשימוש ומנוע נומרי.<br />
כתיבת הקוד והטקסט הינה כתיבה אינטואיטיבית ונוחה לעריכה.<br />
כמו כן קיים תיעוד מלא של תהליך הפתרון אשר מהווה מסמך.<br />
</p>
<p class="notice">
היות ו Maple אינה תוכנה אמריקאית, Maple ושרשרת המוצרים הנלווים ל Maple אינם תחת הגבלות שימוש והפצה של ארה"ב.
השימוש ב Maple אינו מצריך אישור EULA.
</p>
<h2>תכונותיה העיקריות של Maple:</h2>
<br />
<ul>
<li>
יכולות גרפיות גבוהות, יצירת אפליקציות אנימציה בקלות וממשק משתמש גרפי (GUI) נוח ואינטואיטיבי.
</li>
<li>
במהלך הכתיבה ב Maple מתבצע תיעוד מלא של תהליך הפתרון וכתיבת המסמך – תהליך חשוב והכרחי לשימור ידע.
</li>
<li>
פתרון מגוון רחב של בעיות מתמטיות (אלגברה, חדוו"א, משוואות דיפרנציאליות, סטטיסטיקה הסתברות ועוד..) המתבצע בקלות וללא הגבלת דיוק באמצעות המנוע הנומרי החזק של התוכנה.
</li>
<li>
ל Maple סביבת תכנות מלאה הניתנת להרחבה. כמו כן, Maple יודע לבצע חישובים של קוד הנכתב בשפת תכנות אחרת.
</li>
<li>
ל Maple אפשרות להדריך (ולתקן במקרה הצורך) בפתרון בעיות מתמטיות שונות באמצעות תרגולים ופותרנים מובנים בתוכנה.
<li>
<li>
ל Maple יכולת להתממשק עם מגוון רחב של תוכנות לדוגמת Matlab ToolChain, Optimus ועוד..
</li>
</ul>
<br /><br />
<p>
כיום קיימים ב Maple יותר מ-170 חבילות תוכן (Packages) במגוון רחב של נושאים אשר מגיעים עם התוכנה עצמה וללא תשלום נוסף.
<p>
</article>
</section>
</div>
<div id="screenshots">
<h2>Screenshots</h2>
<table cellspacing="15px" id="shots_table">
<tr>
<td>
<img src="http://placehold.it/160x160">
</td>
<td>
<img src="http://placehold.it/160x160">
</td>
<td>
<img src="http://placehold.it/160x160">
</td>
<td>
<img src="http://placehold.it/160x160">
</td>
<td>
<img src="http://placehold.it/160x160">
</td>
</tr>
</table>
</div>
<footer id="footer">
Copyrights Digisec Technology. All rights reserved.
</footer>
</div>
</body>
As you can see, I'm using big wrapper for whole site, and box for article pages.
so box will contain the sidebar and the article.
following is the CSS parts which seems relevant:
#top_header{
margin-top: 5px;
padding: 20px;
}
#footer{
color: grey;
text-align: center;
padding: 20px;
border-top: 2px solid black;
}
/*Articles*/
#box{
display: -webkit-box;
-webkit-box-orient: horizontal;
display: -moz-box;
-moz-box-orient: horizontal;
display: -o-box;
-o-box-orient: horizontal;
margin-bottom: 10px;
}
#maple_article{
width: 85%;
color: #f8f8f8;
font-size: 16px;
margin-left: 15px;
}
#sidebar{
width: 15%;
}
.notice{
color: #FF6666 ;
}
/*ScreenShots*/
#screenshots{
text-align: right;
}
#shots_table{
float: right;
}
You can see I'm defining 15% width for the sidebar and 85% for the article.
the screen shots our outside the box section.
I'm using box layout and also made sure moz is also defined.
What am I missing?
Well, I was dumb, Had to define specific width to sidebar and make the article flexible.