lovebug
Active Coder
Hi, I just joined and I hope you can help me
Im not very good at css and ive been trying to get this to work for 4 days now and I just cant do it
I have a website at http://lovebug.ml with a fixed non scrolling menu at the top and im trying to display 2 images after the navigation buttons
The first (a tron lightcycle) I can display ok no issues but im trying to display a 2nd image (light cycle wall) which is 1 pixel wide and would like to repeat this image all the way to the right of the page as shown in this mockup image
The problem im having is that no matter what i try the layout of the navigation bar becomes a mess once I add the 2nd wall image
Is it possible ? I have posted this question in another forum and so far its no been solved
The closest ive gotten is having the red wall across the full width of the page behind the buttons and bike but that looks wrong
I can include my (stripped down index), navigation and css if it helps ?
Thanks
index.php
navigation.php
style.css
Im not very good at css and ive been trying to get this to work for 4 days now and I just cant do it
I have a website at http://lovebug.ml with a fixed non scrolling menu at the top and im trying to display 2 images after the navigation buttons
The first (a tron lightcycle) I can display ok no issues but im trying to display a 2nd image (light cycle wall) which is 1 pixel wide and would like to repeat this image all the way to the right of the page as shown in this mockup image
The problem im having is that no matter what i try the layout of the navigation bar becomes a mess once I add the 2nd wall image
Is it possible ? I have posted this question in another forum and so far its no been solved
The closest ive gotten is having the red wall across the full width of the page behind the buttons and bike but that looks wrong
I can include my (stripped down index), navigation and css if it helps ?
Thanks
index.php
Code:
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<title>LoveBug - News</title>
<link rel='stylesheet' href='/style.css' />
</head>
<body>
<!-- navigation menu -->
<?php include $_SERVER['DOCUMENT_ROOT'] . '/navigation.php';?>
<!-- end navigation menu -->
<!-- page content -->
<div class='main'>
<div class='slab' id='news'>
<div>
<h1>Welcome to lovebug.ml</h1>
</div>
<h2>News</h2>
</div>
</div>
<!-- end page content -->
</body>
</html>
navigation.php
Code:
<div class='navbar'>
<ul>
<div id='navigation'>
<li><a href='/'>Home</a></li>
<li><a href='/servers.php'>Servers</a></li>
<li><a href='/projects.php'>Projects</a><li>
<li><a href='/websites.php'>Websites</a></li>
</div>
<div id='lovebug-logo-cycle'>
<img src='/images/light-cycle-red-50.png'>
</div>
<!--
<div id='lovebug-logo-wall' style='background-image: url("/images/light-cycle-wall-red-50.png"); background-repeat: repeat-x;'>
</div>
-->
</ul>
</div>
<br>
<br>
<br>
style.css
Code:
/* scrollbar firefox */
*
{
scrollbar-width: auto;
scrollbar-color: #00f #000;
}
/* scrollbar chrome safari edge */
::-webkit-scrollbar
{
width: auto;
}
::-webkit-scrollbar-track
{
background: #000;
}
::-webkit-scrollbar-thumb
{
background: #00f;
}
body
{
background-image: url('/images/grid.png');
background-repeat: repeat;
background-attachment: fixed;
font-family: Arial, Helvetica, sans-serif;
font-size: 125%;
color: #ddd;
margin: 0 auto;
}
hr
{
border: 1px solid #00f;
}
b
{
color: #fff;
}
h1
{
color: #fff;
border-bottom: 2px solid #f00;
border-radius: 5px;
}
p, a, ul, table, flex, div
{
line-height: 1.3;
color: #ddd;
}
div h1
{
text-align: center;
line-height: 1.5;
}
div.navbar
{
background-image: url('/images/grid.png');
background-repeat: repeat;
background-attachment: fixed;
margin-bottom: 16px;
padding: 12px 22px;
display: inline-block;
width: 100%;
position: fixed;
}
a
{
color: #fff;
font-weight: bold;
transition: all 600ms;
}
a:hover
{
color: #f00;
}
ul
{
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
}
li
{
float: left;
}
li a
{
display: block;
color: #ddd;
background: #000;
text-align: center;
padding: 8px 14px;
margin: 5px 5px;
text-decoration: none;
border: 2px solid #00f;
border-radius: 7px;
transition: all 600ms;
}
li a:hover
{
background: #f00;
color: #fff;
border: 2px solid #00f;
border-radius: 7px;
}
div.main
{
display: flex;
padding: 2px 12px;
}
div.slab
{
background: #000;
color: #ddd;
display: flex 1;
border: 2px solid #00f;
border-radius: 7px;
padding: 5px 24px;
margin: 15px;
transition: all 400ms;
vertical-align: top;
}
/* use for embedding youtube videos */
iframe
{
border: none;
}
Last edited: