Why is my complete table in bold? - html

Good day,
I have the following table in html which is entirely displayed in bold. What I don't understand is that I have set the property font-weight to normal in my train_timetable_table element:
Have I missed to add a new element to my CSS configuration which would only show the first row in bold (identified in my example below by * I would like this row in bold *)
I hope that my question is clear enough and hopefully will save some time for future searches.
Many thanks for your time and your help to solve this matters.
Best wishes
/* Page entière (utilisé pour avoir une couverture globale en couleur) */
body {
background-color:#005580; /*night mode*/
background-color:#ccffcc; /*day mode*/
}
/* Affichage de l'en-tête */
#header {
font-family:Arial;
text-align:center;
position: relative;
background-color:#005580; /*night mode*/
background-color:#ccffcc; /*day mode*/
color:black;
padding-top: 5px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
width:1000px;
height:80px;
}
/* Affichage de la barre de navigation */
#nav {
font-family:Arial;
position: relative;
line-height:50px;
background-color:#005580; /*night mode*/
background-color:#ccffcc; /*day mode*/
height:434px;
width:60px;
float:left;
padding-top: 5px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
}
/* Affichage des données essentielles (section) */
#section {
font-family:Arial;
font-size: 100%;
float:left;
background-color:#005580; /*night mode*/
background-color:#ccffcc; /*day mode*/
padding-top: 5px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 10px;
height:434px;
width:870px;
}
/* Affichage de la barre de pied d'écran (version de domooaweb) */
#footer {
font-family:Arial;
font-size: 60%;
text-align:center;
background-color:#005580; /*night mode*/
background-color:#ccffcc; /*day mode*/
color:black;
clear:both;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
height:12px;
width:1000px;
}
#validity {
font-family:Arial;
font-size: 100%;
color:black;
position:fixed;
top: 110px;
left: 640px;
width:350px;
}
#reserved {
position:fixed;
top: 250px;
left: 200px;
color:black;
font-family:Arial, sans-serif;
font-size:18px;
}
#home_automation_tab
{
position: fixed;
height: 350px;
width: 900px;
top: 140px;
left: 140px;
}
#train_station img {
position: fixed;
top: 160px;
left: 140px;
z-index: 2;
}
#weather_img img {
position: fixed;
top: 160px;
left: 140px;
z-index: 2;
}
#emergency_img img {
position: fixed;
top: 160px;
left: 140px;
z-index: 2;
}
/* Affichage du logo */
#logo img {
position: fixed;
top: 12px;
left: 5px;
z-index: 2;
}
/* Affichage de l'icône météo */
#meteo_icon img{
position: fixed;
top: 12px;
left: 935px;
z-index: 2;
}
/* Affichage des prévisions météorologiques (températures) */
.meteoforecast_temperature{
font-family: Arial, Helvetica, sans-serif;
font-size: 26px;
font-weight: 900;
color: black;
}
/* Affichage des prévisions météorologiques (jour) */
.meteoforecast_day{
font-family: Arial, Helvetica, sans-serif;
font-size: 22px;
color: black;
}
/* Affichage des prévisions météorologiques (condition) */
.meteoforecast_condition {
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
color: black;
}
/* Affichage de la météo dans le monde (scroller) */
#worldwide_meteo {
font-family:Arial;
font-size: 18px;
color:black;
top: 150px;
left: 145px;
width: 800px;
position: fixed;
}
/* Affichage de l'image d'erreur 404 (page non trouvée) */
#err404 img{
position: fixed;
top: 180px;
left: 180px;
}
/* Affichage de l'image de la météo mondiale */
#ww_meteo img{
position: fixed;
top: 200px;
left: 165px;
}
/* Affichage des icônes météo mondiale */
Marquee img {
vertical-align:middle
}
/* Table pour horaires de train (lundi-samedi) */
#table_train_timetable1
{
position: fixed;
top: 290px;
left: 139px;
z-index: 2;
}
/* Table pour prévisions météo 3 jours */
#table_forecast_3days
{
position: fixed;
top: 290px;
left: 139px;
z-index: 2;
}
.train_timetable_table
{
border: 1px solid black;
color: black;
border-color:gray;
font-weight:normal;
}
.train_timetable_table td
{
font-family:Arial, sans-serif;
font-size:14px;
padding:5px 5px 5px 5px;
border-style:solid;
border-width:1px;
overflow:hidden;
word-break:normal;
border-color:gray;
font-weight:normal;
}
.train_timetable_table th
{
font-family:Arial, sans-serif;
font-size:14px;
font-weight:normal;
padding:5px 5px 5px 5px;
border-style:solid;
border-width:1px;
overflow:hidden;
word-break:normal;
border-color:gray;
}
.train_timetable_table .title
{
font-weight:bold;
color:black;
border-color:gray;
}
.train_timetable_table .tablerows
{
vertical-align:top;
font-weight:normal;
}
.weather_forecast_table
{
border: 1px solid black;
}
.useful_numbers_table
{
border: 1px solid black;
color:black;
border-color:gray;
}
.temps_parcours_table
{
border: 1px solid black;
color: black;
border-color:gray;
}
.temps_parcours_table td
{
font-family:Arial, sans-serif;
font-size:14px;
padding:5px 5px 5px 5px;
border-style:solid;
border-width:1px;
overflow:hidden;
word-break:normal;
border-color:gray;
}
.temps_parcours_table th
{
font-family:Arial, sans-serif;
font-size:14px;
font-weight:normal;
padding:5px 5px 5px 5px;
border-style:solid;
border-width:1px;
overflow:hidden;
word-break:normal;
border-color:gray;
}
.temps_parcours_table .title
{
font-weight:bold;
color:black;
border-color:gray;
}
h2
{
position: fixed;
top: 100px;
left: 140px;
color:black;
}
progress[value] {
/* Reset the default appearance */
-moz-appearance: none;
appearance: none;
/* leave defaults in for other browsers */
background-size: 35px 20px, 100% 100%, 100% 100%;
color:purple;
}
progress::-webkit-progress-bar {
/* ici les styles généraux pour Webkit */
background-color: purple;
}
progress[value]::-webkit-progress-value {
background-color: purple;
}
<!DOCTYPE html>
<html>
<head>
<title>Domuob | home</title>
<meta http-equiv="refresh" content="360">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
<meta http-equiv="pragma" content="no-cache">
<link rel="stylesheet" type="text/css" href="css/mystyle_day.css" />
</head>
<body>
<div id="header">
<h1></h1>
<div id="section">
<h2>Horaires de train</h2>
<div id="train_station">
<img src="assets/pictures/zoo.png" alt="" style="width:850px;height:97px;">
</div>
<div id="table_train_timetable1">
<table class="train_timetable_table" style="width:840px">
<colgroup>
<col style="width: 210px">
<col style="width: 210px">
<col style="width: 210px">
<col style="width: 210px">
</colgroup>
<tr>
<th class="title" colspan="4"><img src="assets/icons/logo_s.png" alt ="" style="width:15px;height:15px;">** I would like this row in bold **</th>
</tr>
<tr>
<td class="tablerows"><b>05:36 05:51♦</b></td>
<td class="tablerows"><b>06:06 06:21♦ 06:36 06:51♦</b></td>
<td class="tablerows"><b>07:06 07:21♦ 07:36 07:51♦</b></td>
<td class="tablerows"><b>08:06 08:21♦ 08:36 08:51♦</b></td>
</tr>
<tr>
<td class="tablerows"><b>09:06 09:21♦ 09:36 09:51♦</b></td>
<td class="tablerows"><b>10:06 10:21♦ 10:36 10:51♦</b></td>
<td class="tablerows"><b>11:06 11:21♦ 11:36 11:51♦</b></td>
<td class="tablerows"><b>12:06 12:21♦ 12:36 12:51♦</b></td>
</tr>
</table>
</div>
<div id="validity">
<p align="right">Horaires valables du 11.12.2016 au 09.12.2017</p>
</div>
</div>
<div id="footer"> Duobweb version 0.0.7 </div>
</body>
</html>

Because you are using <b> tag everywhere in your table that's why it’s showing bold everywhere. Try to change that with <span> or something else.

Since you have added <b> Bold tag around the contents of Each cell, it is overriding the CSS property you set in the CSS File:
.train_timetable_table
{
border: 1px solid black;
color: black;
border-color:gray;
font-weight:normal;
}
Remove the <b> tag around each cell values.

because, by default b tag have font-weight: bold property.
Insert this code,if want remove affect font-weight:
.train_timetable_table .tablerows b {
font-weight: normal;
}

Related

Why I can't scroll down on my page

I can't scroll down on my page, i have looked for the overflow property to change it from hidden to scroll but its still not working.
I hope someone can help me with this frustrating problem...
I have pasted all my css files in the overflow editor so you guys can see what is going wrong.
Here is my source code:
body {
font-family: sans-serif;
font-size: 16px;
font-weight: 400;
overflow: scroll;
}
div.gallery1 {
border: 5px solid #2f354e;
border-radius: 10px;
width: 300px;
background: #17c;
}
div.table-title {
display: block;
max-width: 600px;
padding:5px;
width: 100%;
}
.table-title h3 {
color: #000;
font-size: 30px;
font-weight: 400;
font-style: normal;
font-family: Helvetica, arial, sans-serif;
text-transform: uppercase;
}
.table-fill {
background: white;
border-radius:3px;
border-collapse: collapse;
height: 320px;
max-width: 600px;
padding:5px;
width: 100%;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
animation: float 5s infinite;
}
th {
color:#D5DDE5;
background:#1b1e24;
border-bottom:4px solid #9ea7af;
border-right: 1px solid #343a45;
font-size:23px;
font-weight: 100;
padding:24px;
text-align:left;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
vertical-align: middle;
}
th:first-child {
border-top-left-radius: 3px;
}
th:last-child {
border-top-right-radius: 3px;
border-right: none;
}
tr {
border-top: 1px solid #C1C3D1;
border-bottom-: 1px solid #C1C3D1;
color:#666B85;
font-size:16px;
font-weight:normal;
text-shadow: 0 1px 1px rgba(256, 256, 256, 0.1);
}
tr:hover td {
background:#4E5066;
color:#FFFFFF;
border-top: 1px solid #22262e;
}
tr:first-child {
border-top:none;
}
tr:last-child {
border-bottom:none;
}
tr:last-child td:first-child {
border-bottom-left-radius:3px;
}
tr:last-child td:last-child {
border-bottom-right-radius:3px;
}
td {
background:#FFFFFF;
padding:20px;
text-align:left;
vertical-align:middle;
font-weight:300;
font-size:18px;
text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.1);
border-right: 1px solid #C1C3D1;
}
td:last-child {
border-right: 0px;
}
th.text-left {
text-align: left;
}
th.text-center {
text-align: center;
}
th.text-right {
text-align: right;
}
td.text-left {
text-align: left;
}
td.text-center {
text-align: center;
}
td.text-right {
text-align: right;
}
/**********************/
body {
margin: 0;
padding: 0;
/* Location of the image */
background-image: url("http://kb4images.com/images/red-wallpaper-hd/37940982-red-wallpaper-hd.jpg");
/* Background image is centered vertically and horizontally at all times */
background-position: center center;
/* Background image doesn't tile */
background-repeat: no-repeat;
/* Background image is fixed in the viewport so that it doesn't move when
the content's height is greater than the image's height */
background-attachment: fixed;
/* This is what makes the background image rescale based
on the container's size */
background-size: cover;
/* Set a background color that will be displayed
while the background image is loading */
background-color: #464646;
}
h1 {
color: white;
}
p {
font-family: Impact, Charcoal, sans-serif;
font-size: 20px;
}
/**********************/
/*------Nav-------*/
header {
width:100%;
position: fixed;
}
header nav {
width:100%;
background:#2f354e;
}
.menu_bar {
display:none;
}
header nav ul {
overflow:hidden;
list-style:none;
margin: 0px;
padding: 0px;
}
header nav ul li {
float:left;
}
header nav ul li a {
color:#fff;
padding:14px;
display:block;
text-decoration:none;
}
header nav ul li span {
margin-right:10px;
}
header nav ul li a:hover {
background:red;
text-decoration: none;
color:#ffffff;
}
#media screen and (max-width:800px ) {
header nav {
width:150px;
height:100%;
left:-100%;
margin:0px;
position: fixed;
}
header nav ul li {
display:block;
float:left !important
}
.menu_bar {
display:block;
width:100%;
background:#ccc;
text-align:center;
}
.menu_bar .bt-menu {
display:block;
padding:20px;
background:#2f354e;
color:#fff;
text-decoration:none;
font-weight: bold;
font-size:25px;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}
.menu_bar span {
float:right;
font-size:30px;
}
}
/*--------End of the nav-------*/
/*-------- Generic styles-------*/
body{
overflow: scroll;
margin:0px;
font-family: sans-serif;
}
/*-------- Generic styles-------*/
body {
color: #fff;
}
footer {
background: #2f354e;
bottom: 0;
left: 0;
padding: 20px 0;
position: fixed;
right: 0;
text-align: center;
}
<!DOCTYPE html>
<html>
<title>test</title>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/png" href="favicon/popcorn-32.png">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/loader.css">
<link rel="stylesheet" href="css/footer.css">
<link rel="stylesheet" href="css/filmtoevoegen.css">
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="js/index.js"></script>
<script src="js/loader.js"></script>
</head>
<body>
<header>
<div class="menu_bar">
<span class="fa fa-bars"></span>test
</div>
<nav>
<ul>
<li><span class="fa fa-home"></span>Admin dashboard</li>
<li style="float:right"><span class="fa fa-sign-out"></span>Loguit</li>
</ul>
</nav>
</header>
<br>
<br>
<br>
<br>
<br>
<center>
<div class="gallery1">
<h3>Film toevoegen</h3>
</div>
<br>
<br>
<table class="table-fill">
<thead>
<tr>
<th class="text-left">Film:</th>
<th class="text-left">Sales</th>
</tr>
</thead>
<tbody class="table-hover">
<tr>
<td class="text-left">Genre:</td>
<td class="text-left">$ 50,000.00</td>
</tr>
<tr>
<td class="text-left">Film omschrijving:</td>
<td class="text-left">$ 10,000.00</td>
</tr>
<tr>
<td class="text-left">Datum van uitkomst:</td>
<td class="text-left">$ 85,000.00</td>
</tr>
<tr>
<td class="text-left">Datum uit bioscoop:</td>
<td class="text-left">$ 56,000.00</td>
</tr>
<tr>
<td class="text-left">Film draai dagen:</td>
<td class="text-left">$ 98,000.00</td>
</tr>
<tr>
<td class="text-left">Zaal:</td>
<td class="text-left">$ 98,000.00</td>
</tr>
<tr>
<td class="text-left">Film afbeelding:</td>
<td class="text-left">$ 98,000.00</td>
</tr>
</tbody>
</table>
</center>
<footer>© Copyright test</footer>
</body>
</html>
Your footer is positioned with fixed position, that's why it is overlapping with your content of body.
In case of setting position fixed for header/footer, make sure to set padding of the body in top/bottom respectively.
So in this case setting the padding-bottom of the body to the height of the footer will make the content visible.
add below css line to your body tag.
body {
padding-bottom:58px; /* height of the footer */
}
you might need to reset the overflow-x to hidden html{ overfloq-x:hidden; }

trying to make my background image transparent

here is part of the CSS code, i cant seem to figure it out.
#About{
height:500px;
background: url("murano.jpg") no-repeat center;
}
I want to decrease the opacity of the imported background image
Add Opacity with your css
#About{
opacity :0.4;
height:500px;
background: url("murano.jpg") no-repeat center;
}
the best solution would be to create another div inside your #about div and position that div absolute while position your #about div to relative and give the background of this newly added div as rgba(0,0,0,0.5) where 0.5 represents the opacity
there is no css rule to provide opacity to background images.
when you put the opacity of #about div to 0.4 of course its child will inherit this property and any text inside about div will get the opacity of 0.4
<div id="about">
<div class="absolute">
</div>
</div>
#about{
position:relative;
background:url(..);
}
.absolute{
position:absolute;
background:rgba(0,0,0,0.5);
}
Use background-color: rgba(255, 255, 0, 0.3);
The 0.3 being the the alpha(opacity channel).
OR
Add an extra div to hold the background, and change the opacity there.
opacity: 0.4; filter:alpha(opacity=40);
Example :
#background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('http://i40.tinypic.com/3531bba.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: 100%;
opacity: 0.4;
filter: alpha(opacity=40);
}
.head {
width: 150px;
height: 160px;
}
body {
font-family: tahoma, helvetica, arial, sans-serif;
font-size: 12px;
text-align: center;
background: #000;
color: #ddd4d4;
padding-top: 12px;
line-height: 2;
}
td,
th {
font-size: 12px;
text-align: left;
line-height: 2;
}
#wrapper {
margin: auto;
text-align: left;
width: 832px;
position: relative;
padding-top: 27px;
}
#body {
background: url(images/body_bg_1.gif) repeat-y;
width: 832px;
}
#bodyi {
background: url(images/body_top_1.gif) no-repeat;
width: 832px;
}
#bodyj {
background: url(images/body_bot_1.gif) bottom no-repeat;
padding: 1px 0;
}
#body2 {
background: url(images/body_bg_2.gif) repeat-y;
width: 832px;
}
#bodyi2 {
background: url(images/body_top_2.gif) no-repeat;
width: 832px;
}
#bodyj2 {
background: url(images/body_bot_2.gif) bottom no-repeat;
padding: 1px 0;
}
h1,
h2,
h3,
#nav,
#nav li {
margin: 0;
padding: 0;
}
#nav {
font-size: 10px;
position: absolute;
right: 0;
top: 12px;
line-height: 1.2;
padding-left: 120px;
}
#nav li {
float: left;
width: 108px;
list-style: none;
margin-left: 2px;
border-bottom: 1px solid black;
}
#nav a {
background: #738d09;
color: #2e3901;
font-weight: bold;
text-decoration: none;
display: block;
text-align: center;
padding: 1px 0;
}
#sidebar {
float: left;
width: 250px;
padding-left: 4px;
}
#sidebar .content {
padding-left: 24px;
}
#sidebar .content img {
float: left;
clear: left;
margin: 5px 5px 5px 0;
}
#sidebar .divider {
background: url(images/left_splitter.gif) center no-repeat;
height: 5px;
width: 169px;
}
#content {
float: right;
width: 462px;
}
#content1 {
float: left;
width: 800px;
}
#content1 .content {
margin: 7px 35px 7px 20px;
padding-left: 20px;
}
#content .content {
margin: 7px 55px 7px 17px;
}
#content .content table {
width: 310px;
margin-right: 0px;
}
#content .content table td,
#content .content table th {
padding-right: 10px;
}
#content .content table td.download {
text-align: right;
padding-right: 0px;
}
#content .divider {
background: url(images/right_splitter.gif) repeat-x;
height: 5px;
}
h1 {
position: absolute;
left: 0;
top: 0;
}
h2 {
font-size: 10px;
color: #cf9118;
margin: 1em 0;
}
h3 {
font-size: 10px;
margin: 1em 0;
}
h5 {
font-size: 20px;
color: #cf9118;
margin: 1em 0;
text-align: center;
}
h6 {
font-size: 18px;
margin: 1em 0;
}
p {
margin: 1em 0;
}
img {
border: 0;
}
img.left {
float: left;
margin-right: 14px;
}
img.right {
float: right;
margin-left: 14px;
}
.readmore {
text-align: right;
}
.hidden {
visibility: hidden;
}
.clear {
clear: both;
}
a {
color: #f0b33c;
font-weight: bold;
text-decoration: none;
}
a:visited {
color: #cf9118;
}
a:hover {
text-decoration: underline;
}
table a {
text-decoration: underline;
font-weight: normal;
color: #7f7c79;
}
#power {
color: #fff;
text-align: center;
}
#power a {
color: #fff;
}
<div id="background"></div>
<div class="head">
</div>
<div id="wrapper">
<ul id="nav">
<li>Inicio
</li>
<li>Sobre a banda
</li>
<li>Membros
</li>
<li>Bilhetes
</li>
<li>Galeria
</li>
<li>Área Pessoal
</li>
</ul>
<h1></h1>
<div id="body">
<div id="bodyi">
<div id="bodyj">
<div id="sidebar">
<div class="content">
<h2>Galeria de imagens</h2>
<p>Aqui poderá encontrar uma galeria de imagens da banda, com fotos de concertos, entre outras imagens.</p>
<p class="readmore">Ver
</p>
</div>
<div class="content">
<h2>Noticias</h2>
<h3>18 de Abril, 2011</h3>
<h4>"So Far Away" vai ter videoclip</h4>
<p>Muitos se questionavam se o mais recente single dos Avenged Sevenfold, "So Far Away", ia ter direito a um videoclip. Eis que surge a boa notícia para os fãs dos A7X: So Far Away vai ter videoclip. Já foram divulgadas algumas fotos do set de
filmagens.</p>
<h3>10 de Março, 2011</h3>
<h4>A7X nomeados para a Metal Hammer Golden Gods Awards 2011</h4>
<p>Os Avenged Sevenfold foram nomeados para a Metal Hammer Golden Gods Awards 2011 em duas categorias. As categorias onde os A7X estão a participar são as seguintes:
<p>
- Best International Band (Melhor Banda Internacional)
<p>
- Best Shredder (com o Synyster Gates) (Melhor Shredder)</p>
</div>
</div>
<div id="content">
<center>
<img src="images/avengeds.jpg" width="346" height="234" alt="four men walking" />
</center>
<div class="content">
<h2>O album mais recente</h2>
<img src="images/nightmare.jpg" width="82" height="80" alt="Unwired album cover" class="left" />
<p>Os californianos Avenged Sevenfold estão de volta aos discos com "Nightmare". Solos de guitarra, vocalizações rasgadas e um som contagiante continuam a ser a base do sucesso de uma das bandas de heavy-metal com mais fãs no mundo inteiro. Fundados
em 1999 por M. Shadows, Synyster Gates, Zacky Vengeance, Johnny Christ e The Rev - baterista que faleceu em Dezembro de 2009 passado e que foi substituido neste disco por Mike Portnoy, dos Dream Theater - os Avenged Sevenfold já contam com
cinco discos de originais na sua carreira.</p>
<div class="divider"></div>
<h2>Musicas com maior sucesso</h2>
<table summary="track downloads" border="0" cellspacing="0">
<tr>
<th width="55%">Faixa</th>
<th>Album</th>
<th class="hidden">Dowload links</th>
</tr>
<tr>
<td>Bat Country</td>
<td>City of Evil</td>
<td class="download">Ouvir
</td>
</tr>
<tr>
<td>Beast and the Harlot</td>
<td>City of Evil</td>
<td class="download">Ouvir
</td>
</tr>
<tr>
<td>Seize the Day</td>
<td>City of Evil</td>
<td class="download">Ouvir
</td>
</tr>
<tr>
<td>Almost Easy</td>
<td>Avenged Sevenfold</td>
<td class="download">Ouvir
</td>
</tr>
<tr>
<td>Afterlife</td>
<td>Avenged Sevenfold</td>
<td class="download">Ouvir
</td>
</tr>
<tr>
<td>Nightmare</td>
<td>Nightmare</td>
<td class="download">Ouvir
</td>
</tr>
<tr>
<td>Welcome to the Family</td>
<td>Nightmare</td>
<td class="download">Ouvir
</td>
</tr>
</table>
</div>
</div>
<div class="clear"></div>
</div>
</div>
</div>
<div align="right">
<font size="2">text</font>
</div>
</div>
you would want to add the background to the #about:after and then apply the transparency to that. there is no way to add the transparency directly to the background as far as I know.
here is a link to a good article on this.

blank space in the middle of the site

I'm making this site and there's a blank space between the image and the table I want to put, i tried to find if there was a code making that space but found nothing. where can be the problem??
Thanks!
<style>
body {
padding: 0;
margin: 0;
background-color: #F0F0F0;
}
#nav {
font-family:sans-serif;
background-color:#F0F0F0;
position: fixed;
top: 0;
width: 100%;
color: #383838;
height: 27px;
text-align: center;
padding-top: 9px;
z-index: 999;
/* Adds shadow to the bottom of the bar */
-webkit-box-shadow: 0px 0px 0px 0px #FFA600;
-moz-box-shadow: 0px 0px 0px 0px ##FFA600;
box-shadow: 0px 0px 0px 1px #FFA600;
}
#nav a {
font-size: 14px;
padding-left: 70px;
padding-right: 50px;
color: #383838;
text-decoration: none;
z-index: 999;
}
#nav a:hover {
color: #FCC772;
z-index: 999;
}
header{
position: relative;
width: 390px;
top: 80px;
padding-bottom:20px;
z-index: 1;
margin:0 auto;
}
#hd2{
padding-top:90px;
position: relative;
padding-bottom:15px;
}
.wbox {
position: relative;
top: -370px;
opacity: 0.6;
width:750px;
height:280px;
z-index: 1;
margin:0 auto;
}
#textini {
top: -570px;
height: 150px;
position: relative;
padding-bottom:0px;
margin:0 auto;
z-index: 3;
}
#textini p{
padding-bottom:0px;
padding-top:0px;
font-family:sans-serif;
text-align: center;
font-weight:normal;
font-size: 28px;
z-index: 3;
color:#383838;
}
.s3{
margin-top:50px;
margin:0 auto;
position: relative;
}
.font_8{
font-family:sans-serif;
color:#ffffff;
font-size:18px;
font-weight:normal;
margin:0 auto;
text-align:center;
}
footer {
background-color:rgba(56, 56, 56, 1);
clear:both;
padding:30px;
border-top: 0px solid rgba(146, 146, 146, 1);
border-bottom: 0px solid rgba(146, 146, 146, 1);
}
</style>
</head>
<html>
<head>
<meta charset="UTF-8">
<title>Números & Vírgulas</title>
<link rel="stylesheet" type="text/css"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<body>
<div id="page-wrap">
<div id="nav" style="overflow:hidden">
INÍCIO
ATUAÇÃO
QUEM SOMOS
CONTATOS
</div>
<header>
<img src="http://i61.tinypic.com/2vjwxv5.png" style="width:100%;height:100%" alt="" />
</header>
<div id="hd2">
<img src="http://i61.tinypic.com/fn4n6q.png"; style="width:100%;height:424px"; alt="" />
</div>
<div class="wbox">
<img src="http://i60.tinypic.com/2ypel9c.png" style="width:100%; height:100%" alt="" />
</div>
<div id="textini">
<p>Os Números constituem uma linguagem universal mas <br> uma Vírgula pode mudar tudo.</p>
<p style="margin-left:350px;font-size:15px">Por: Dr. Sérgio Rosa</p>
</div>
<table style="width:100%:">
<tr>
<td>Jill</td>
<td>Smith</td>
<td>50</td>
</tr>
<tr>
<td>Eve</td>
<td>Jackson</td>
<td>94</td>
</tr>
</div>
</table>
<div style="width:330px; top:55px;" class="s3">
<p style="line-height: 1.6em;" class="font_8"><span style="line-height:1.6em;">© 2013 Números & Vírgulas</span></p>
</div>
<!--
<div class="in" style="width:0 auto; padding-left:0px; right:300px;">
<a href="https://www.linkedin.com/company/n%C3%BAmeros-&-v%C3%ADrgulas---contabilidade-gest%C3%A3o-e-forma%C3%A7%C3%A3o-unipessoal-lda-?trk=top_nav_home">
<img src="http://i59.tinypic.com/jphpix.png" alt=" " style="width:24px;height:24px;margin:0 auto;float:right">
</a>
</div>
-->
<footer>
<br>
</footer>
</body>
</html>
your space is taken up by <div class='wbox'></div> and <div class='textini'></div> they have a set height but you are positioning them by using negative top values.
Here is the site without the 2 elements fixed
So you are going to need to restructure your site.
Try to change relative position to absolute for .wbox & #textini : Demo
CSS:
.wbox {
position: absolute;
top: -370px;
opacity: 0.6;
width:750px;
height:280px;
z-index: 1;
margin:0 auto;
}
#textini {
top: -570px;
height: 150px;
position: absolute;
padding-bottom:0px;
margin:0 auto;
z-index: 3;
}
You can fix the issue by updating your css with the below one
#textini {
top: -215px;
height: 150px;
position: relative;
padding-bottom: 0px;
margin: 0 auto;
z-index: 3;
}
.wbox {
position: relative;
top: -370px;
opacity: 0.6;
width: 750px;
height: 280px;
z-index: 1;
margin: 0 auto;
margin-bottom: -370px;
}

Responsive menu html css on small screens

I want to make a responsive menu with only html and css , no Javascript.
I'm still practising.. maybe anyone can see why my menu doesn't appear when clicking on the label?
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="Frank.css">
<meta name="author" content="Frank Van Hoek">
<title>Frank</title>
</head>
<body>
<header>
<div class="logo" class="cfx">
<img class="imglogo" class="cfx" src="afbeeldingen/logo.png" alt="Logo">
</div>
<div class="facebook" class="cfx"></div>
<img class="facebook" class="cfx" src="afbeeldingen/facebook.png" alt="facebook">
</header>
<div class="wrapper" class="cfx">
<nav class="normaal" class="cfx">
<ul class="menu" class="cfx">
<li class="actief">Home</li>
<li>Leden</li>
<li>Parken</li>
<li>Evenementen</li>
<li>Over ons</li>
</ul>
</nav>
/************HAMBURGER***************/
<nav class="hamburger">
<input type="checkbox" id="menu-toggle">
<label for="menu-toggle"></label>
<ul>
<li class="actief">Home</li>
<li>Leden</li>
<li>Parken</li>
<li>Evenementen</li>
<li>Over ons</li>
</ul>
</nav>
<div class="content" class="cfx">
<h2>BMX : Streetculture in Antwerp</h1>
<video controls><source src="afbeeldingen/StreetcultureInAntwerp.mp4" type="video/mp4"></video>
<p>Onze A.Way leden in dit filmpje zijn Tarik Begdouri, Zeno Peeters, Koen Vanden Broeck en Dimitri Huybrechts. De andere rijders zijn Niels Mertens, Stef de Backer, Brian O' Brien, Jonas van Oosterbosch en Juno Vereecken. Het werd gefilmd en gemonteerd door onze rijder Ilyas Deckers en de achtergrondmuziek is "Al'Tarba Vs Lord Lhus - 3 Amigos feat Dirty Dike & Jace Abstract".</p>
<h1>Nieuwsfeeds</h1>
<div class="nieuwsfeed">
<p class="bericht">
Dit weekend is het de 'Braaab BMX Contest 2015' in '040 BMX park' in Eindhoven. Dit wil je niet missen! Meer informatie vind je op de facebookpagina.
</p>
<p class="datum">
4 maart 2015
</p>
</div>
<div class="nieuwsfeed">
<p class="bericht">
Iemand die deze rail durft te grinden? - Locatie: Aan de schelde, niet ver van ATV
</p>
<p class="datum">
2 maart 2015
</p>
</div>
<div class="nieuwsfeed">
<p class="bericht">
Reminder!!! Deze zondag 2de meeting ivm Bmx jam stadspark - Locatie: Fietsenfikser - Tijdstip: 13u
</p>
<p class="datum">
26 februari 2015
</p>
</div>
<div class="nieuwsfeed">
<p class="bericht">
Deze vrijdag Pizza Friday om 5u in het Stadspark! Be there!
</p>
<p class="datum">
25 februari 2015
</p>
</div>
</div>
<footer>
<p>© All rights reserved - 2015</p>
</footer>
</div>
</body>
</html>
CSS
html
{
font-family: Arial, sans-serif;
height:100%;
margin: 0;
padding: 0;
}
img , video;
{
max-width: 100%;
height: auto;
}
body
{
height:inherit;
margin: inherit;
padding: inherit;
background-color: #000;
}
.wrapper
{
max-width: 900px;
min-width: 400px;
min-height:100%;
margin: 0 auto;
background-color: #000;
}
header
{
background-image:url(afbeeldingen/skyline.png);
margin: auto;
height: 336px;
width: inherit;
}
.logo
{
padding: 0 1.25em;
float: left;
}
.imglogo
{
width: 170px;
height: 170px;
}
.facebook
{
width: 40px;
height: 40px;
text-align:right;
float:right;
padding-top: 30px;
}
nav
{
width: 100%;
padding: 0px auto 0px auto;
}
ul.menu
{
list-style-type: none;
margin: 5px 10% 5px 10%;
padding: 5px auto 5px auto;
left: 0;
text-align: center;
}
.menu li
{
float:left;
margin: 5px auto 5px auto;
padding: 0px 1.875em 0px 1.875em;
background-color: #000;
text-align: center;
}
.menu li:first-child
{
padding: 0px 1.875em 0px 1.875em;
}
.menu li > a
{
display: block;
padding: 10px 0px 10px 0px;
margin: 0px 0px 0px 0px;
text-decoration: none;
color: #fff;
}
.menu li:hover, li.actief
{
background-color: #f08222;
}
.menu li:hover > a, li.actief >a
{
color: #000;
}
.hamburger
{
display: none;
}
.content
{
color: #fff;
display:block;
margin: 50px 7.7777777777777777777777777777778% 70px 7.7777777777777777777777777777778%;
}
.content video
{
width: 760px;
height: auto;
}
.content h1
{
text-decoration: underline;
margin: 50px auto;
}
.nieuwsfeed
{
margin: 30px auto;
padding: 0.625em;
border: 1px solid #fff;
border-radius: 5px;
}
.datum
{
text-align: right;
font-size: 0.8em;
}
.content a:link
{
color: #f08222;
}
.content a:visited
{
color: #e2ff00;
}
footer p
{
color: #fff;
font-size: 0.9em;
text-align: center;
margin: 200px auto 40px auto;
}
/**************************
* MEDIA QUERY *
*************************/
#media screen and (max-width: 820px)
{
html, body {
height: 100%;
}
body {
margin: 0;
overflow-x: hidden;
font-family: Arial, sans-serif;
}
.normaal
{
display:none;
}
.hamburger
{
display: inline-block;
}
#menu-toggle {
display: none;
}
#menu-toggle:checked ~ .hamburger ul{
left:0;
}
#menu-toggle:checked ~ .content {
left:240px;
}
#menu-toggle:checked + label {
left:250px;
}
label[for="menu-toggle"] {
position: fixed;
left:60px;
top:300px;
width: 30px;
height: 30px;
background-color: #0f0;
z-index: 2;
}
.hamburger ul{
position: fixed;
width: 240px;
height: 100%;
top:300px;
left: -240px;
background-color: #e34dd2;
color: white;
}
.hamburger ul {
margin: 0;
padding: 0;
list-style: none;
}
.hamburger li a {
display: block;
padding:0.5em 1em;
color: white;
border-bottom: 1px #424240 solid;
}
.container {
position: relative;
left:0;
padding: 2em;
}
nav, .container, label[for="menu-toggle"] {
-webkit-transition: left 0.5s;
transition: left 0.5s;
}
}
/*************************
* C L E A R F I X *
*************************/
.cfx::before, .cfx::after {
display: table;
line-height: 0;
content: "";
}
.cfx::after {
clear: both;
}
It would make more sense to use a responsive framework, such as Bootstrap, or Foundation.
Here is a simplistic example for a responsive navigation menu which utilises bootstrap.
Responsive navigation bar Preview
Responsive navigation bar Download
You have this:
.hamburger ul{
position: fixed;
width: 240px;
height: 100%;
top:300px;
left: -240px;
background-color: #e34dd2;
color: white;
}
position: fixed; means that its position values are in relation to the window/viewport. So having left: -240px; will move this element out of the viewport (i.e. make it invisible). Do you really want this? Even if that's intentionally and supposed to work together with this rule
#menu-toggle:checked ~ .hamburger ul{
left:0;
}
...to move it in, they are in the wrong order - the former rule will most likely overwrite the other one, making the element invisible...

Anyone know how to get rid of space between my main image and image below?

I think the problem occurred because of my relative positioning of the scroll box, but I am not sure how to fix that, since the scroll box needs to remain in that position, can anyone help me?
Thanks so much!!
Here is fiddle: http://jsfiddle.net/wp76qjga/
HTML Code:
<script type="text/javascript" src="../Java/jquery.js"></script>
<meta charset="UTF-8">
<title>Feline</title>
<body background="../Images/DSC_8592(sm5).jpg">
<div id="wrapper">
<header id="top">
<h1 style="font-size:60px">L'Auberge De Napoleon III</h1>
<nav id="mainnav">
<ul>
<li><a href="Index.html" >Home</a></li>
<li>Features</li>
<li>Activities</li>
<li>Contact US</li>
<li>Pricing</li>
</ul>
</nav>
</header>
<div id="contactimg">
<img src="http://www.personal.psu.edu/cmr5496/sky_main.jpg">
</div>
<div class="scroll" style="position:relative; left:0px; top:-500px; width:350px; height:480px; padding-left:10px; padding-right:10px; padding-top:10px;">
<div style="position:relative; left:65px"><img style="padding-left:px" width="190px" height="180px" src="../Images/Contact Photos/Map5.png"></div>
<div style="color:rgba(255,255,255,1.00); text-align:justify" class="h1">
<h5>By Car</h5>
<hr width="100%" align="left" color="#39A2E1"/>
</div>
<div style="color:rgba(255,255,255,1.00); text-align:justify; font-weight:200;" class="p">Felines Termenes is situated half an hour from the A61 (Exit 25, Lezignan), and less then an hour from the E 15 (Exit 39, Sigean).</div>
<div style="color:rgba(255,255,255,1.00); text-align:justify; font-weight:200" class="h1"><h5>By Air</h5></div>
<hr width="100%" align="left" color="#39A2E1"/>
<div style="color:rgba(255,255,255,1.00); text-align:justify; font-weight:200" class="p">Budget airlines fly to Carcassonne, Perpignan. Montpellier and Toulouse. The Eurostar goes to Montpellier. It is possible to hire a car at all airports.</div>
<div style="color:rgba(255,255,255,1.00); text-align:justify" class="h1"><h5>By Train</h5></div>
<hr width="100%" align="left" color="#39A2E1"/>
<div style="color:rgba(255,255,255,1.00); text-align:justify; font-weight:200" class="p">The TGV train from Lille and Paris serves Narbonne and Carcassonne. These TGV trains connect with the Eurostar from London. It is possible to hire a car at all railway stations</div>
</div>
<img width="970px" height="600px" style="padding-bottom:20px" src="http://upload.wikimedia.org/wikipedia/commons/2/2a/Junonia_lemonias_DSF_upper_by_Kadavoor.JPG"/>
<div class="hrfancy"><hr width="80%" style="position:relative; top:70x"></div>
<p style="margin: 0px 30px 10px 30px"> The house has been entirely renovated with respect for the original elements like stone walls, wooden beams, … This 5 bedroom house (sleeps 8) is a well equipped property. Situated in one of the most sunny regions of France it profits from a sunny, sheltered court yard and garage in the basement.
This comfortable property is based in the Languedoc-Roussillon region, famous for its recreational activities as here in Cathar country history meets nature. From the village you can reach famous historic towns such as Perpignan, Carcassonne and Narbonne within an hour. Felines is also close to the medieval village of Lagrasse, one of the “les plus beaux villages de France”. A drive to the sea or Spain equally takes you about an hour. Take advantage of your stay and visit some vintners, as Felines-Termenes is on the “Route des 20”, a local initiative of the wine growers of the Corbieres. With your family or with friends, you will appreciate the calm of this 180 sq.m. property. </p>
</article>
<footer>Powered By Ruben © 2015 </footer>
</div>
CSS Code:
.hrfancy { /* taken from http://css-tricks.com/examples/hrs/ */
height: 30px;
border-style: solid;
border-color: black;
border-width: 1px 0 0 0;
border-radius: 20px;
}
.hrfancy:before { /* taken from http://css-tricks.com/examples/hrs/ */
display: block;
content: "";
height: 30px;
margin-top: -31px;
border-style: solid;
border-color: black;
border-width: 0 0 1px 0;
border-radius: 20px;
}
#contactimg {
position:relative;
height:530px;
width:996px;
}
#contactimg img {
height: 100%;
width: 97%;
}
div.scroll {
width: 100px;
height: 100px;
overflow: scroll;
background-color:rgba(27,27,27,0.60)
}
body {
margin: 0px;
color: #151515;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
background-color: #EFF5F8;
}
#slideshow {
position:relative;
height:530px;
width:996px;
}
#slideshow IMG {
position:absolute;
top:0;
left:0;
z-index:8;
}
#slideshow IMG.active {
z-index:10;
}
#slideshow IMG.last-active {
z-index:9;
}
#wrapper {
width: 100%;
min-width: 740px;
max-width: 1000px;
margin-left: auto;
margin-right: auto;
border:#6627C9;
background-color:#E2CFAF;
padding-left: 17px;
padding-right: 17px;
}
#slideshow img {
height: 100%;
width: 97%;
}
#top {
overflow: hidden;
}
h1 {
margin-top: 0px;
margin-bottom: 14px;
color: #3399DD;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
max-width: 100%;
text-align: center;
font-weight: 600;
font-size: 36px;
}
h5 {
margin-top: 10px;
margin-bottom: 1px;
color: #3399DD;
font-family: "Gill Sans", "Gill Sans MT", "Myriad Pro", "DejaVu Sans Condensed", Helvetica, Arial, sans-serif;
max-width: 100%;
text-align: left;
}
hr{
margin-top: 0px;
margin-bottom:0px;
}
#mainimg img {
max-width: 100%;
padding-top: 2px;
padding-bottom: 2px;
}
.centered {
margin-left: auto;
margin-right: auto;
}
footer {
padding-top: 2px;
padding-bottom: 2px;
padding-left: 2%;
background-color: #43a6cb;
color: #FFFFFF;
position: relative;
bottom: 0px;
}
a {
font-weight: bold;
text-decoration: none;
}
a:link {
color: #FF6600;
}
a:visited {
color: #FF944C;
}
#mainnav a:hover, #mainnav a:active,#mainnav a:focus , #mainnav a.thispage{
color: #FFFFFF;
text-decoration: none;
background-color: #43A6CB;
}
li:hover hr{
color: orange;
}
#mainnav ul {
list-style-type: none;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
}
#mainnav a {
width: 20%;
background-color: #4D4D4D;
text-align: center;
text-transform: uppercase;
color: #FFFFFF;
padding-top: 6px;
padding-bottom: 6px;
display: block;
float: left;
}
#wrapper #main ul.horizontal1 li
{
display: inline-block;
list-style; none;
}
#wrapper #main .horizontal1 img {
height: 250px;
width: 200px;
margin-top: 15px;
}
#wrapper #main ul.horizontal1 li {
display: inline-block;
font-size: 16px;
list-style; none;
padding: 1em;
text-align: justify;
vertical-align: top;
width: 25%;
}
ul.horizontal1 {
list-style; none;
margin: 0;
padding: 20;
font-size: 0;
}
#wrapper #main ul.horizontall li
{
display: inline-block;
list-style; none;
}
#wrapper #main ul.horizontall li {
display: inline-block;
font-size: 16px;
list-style; none;
padding: 1em;
text-align: justify;
vertical-align: top;
width: 50%;
}
ul.horizontall {
list-style; none;
margin: 0;
padding: 0;
font-size: 0;
}
img{
display: block;
}
*
{
box-sizing: border-box;
}
#main {
padding-left: 10px;
paddin-right: 10px;
}
JAVA: (Just in case)
$(document).ready(function() {
$(".popup").hide();
$(".h1").click(function() {
$(".h1").next().slideToggle(700);
});
});
I know it has to do with the following positioning, when I did relative position in the .scroll class to position it over the main image, the space where it used to be still existed.
<div class="scroll" style="position:relative; left:0px; top:-500px; width:350px; height:480px; padding-left:10px; padding-right:10px; padding-top:10px;">
To get you started.
Add the image in #contactimg as a background-image:
#contactimg {
position:relative;
height:530px;
max-width:100%;
background-image:url(http://www.personal.psu.edu/cmr5496/sky_main.jpg);
background-repeat:no-repeat;
background-size: cover;
}
Add the following css to your .scroll (inside your css stylesheet):
div.scroll {
width: 350px;
height:530px;
overflow: scroll;
background-color:rgba(27,27,27,0.60)
}
Remove inline styling from your .scroll (inside your html) from:
<div class="scroll" style="position:relative; left:0px; top:-500px; width:350px; height:480px; padding-left:10px; padding-right:10px; padding-top:10px;">
To:
<div class="scroll">...</div>
Inside the #contactimg insert the .scroll div:
<div id="contactimg">
<div class="scroll">
<div style="position:relative; left:65px"><img style="padding-left:px" width="190px" height="180px" src="../Images/Contact Photos/Map5.png"></div>
<div style="color:rgba(255,255,255,1.00); text-align:justify" class="h1">
<h5>By Car</h5>
<hr width="100%" align="left" color="#39A2E1"/>
</div>
<div style="color:rgba(255,255,255,1.00); text-align:justify; font-weight:200;" class="p">Felines Termenes is situated half an hour from the A61 (Exit 25, Lezignan), and less then an hour from the E 15 (Exit 39, Sigean).</div>
<div style="color:rgba(255,255,255,1.00); text-align:justify; font-weight:200" class="h1"><h5>By Air</h5></div>
<hr width="100%" align="left" color="#39A2E1"/>
<div style="color:rgba(255,255,255,1.00); text-align:justify; font-weight:200" class="p">Budget airlines fly to Carcassonne, Perpignan. Montpellier and Toulouse. The Eurostar goes to Montpellier. It is possible to hire a car at all airports.</div>
<div style="color:rgba(255,255,255,1.00); text-align:justify" class="h1"><h5>By Train</h5></div>
<hr width="100%" align="left" color="#39A2E1"/>
<div style="color:rgba(255,255,255,1.00); text-align:justify; font-weight:200" class="p">The TGV train from Lille and Paris serves Narbonne and Carcassonne. These TGV trains connect with the Eurostar from London. It is possible to hire a car at all railway stations</div>
</div><!-- end scroll -->
</div><!-- end contactimg -->
Remove inline styling from the first div child of .scroll from:
<div class="scroll">
<div style="position:relative; left:65px">...
To:
<div class="scroll">
<div>...
http://jsfiddle.net/fgt7wu8b/