CSS, Snippets, Tutorials, xHTML

Framebar (like diggbar) example in html and css with no javascript


This example code shows you how you can have a top branding bar similiar to diggbar in just a few lines of html and css.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<title>framebar example by Web Development Blog</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
    margin: 0;
    padding: 40px 0 0 0;
    overflow: hidden;
    font: 83%/1.4 Arial, Helvetica, Sans-Serif;
#bar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    min-width: 900px;
    height: 30px;
    padding: 5px 0;
    line-height: 1;
    background: #333;
    color: #fff;
    text-size: 1.2em;
#bar a {
    padding: 0 5px;
    color: #fff;
#frame {
    width: 100%;
    height: 100%;
    z-index: 10;
<!-- BEGIN: bar -->
<div id="bar">
<a href="https://eisabainyo.net/weblog/" title="Web Development Blog">Web Development Blog</a>
<!-- END: bar -->
<iframe scrolling="auto" id="frame" src="https://eisabainyo.net/weblog/" frameborder="0"></iframe>

3 thoughts on “Framebar (like diggbar) example in html and css with no javascript

  1. How do you add your “Html” or Java script to this code?
    See my site I want a BAR where people can random surf websites on my blog.

Comments are closed.