More fun with Css signs & floats Some additional ideas that you can do with floats 1. control on a css sign to make it look like a corner was taken out
This would be making a point using the borders
kind of control in design work Or to place an image. Plenty of ways to us this too The eagle
To turn the borders off and on use a zero
border-width:
The above float uses 4 floats a picture and the text with a black background.
See if you can figure it out. The bottom right float is the same color as the background and turns the right and bottom borders off. The the maroon box with all of the borders on, and the black text background with a full border. So you can mix and conmbine stuff to do fairly complex stuff.
Like this
This is the code to do that:
<div style="width:100%; height:100%; background-color: black; border-width: 0 1px 1px 0; border-style: solid; border-color: gold;"> </div>
See: border-width: 0 1px 1px 0;
That turns the top border off with 0 the right and bottom on at 1 pixel wide, and the left border off with 0
The above float is actually 2 floats. Both with tthe same background color.
The top left float has the #1 and uses two borders. This is a float using an HTML object and text on top.
You can drag this any size just as you can the square floats.
To change the border color change the 4 places where it says chocolate In the header....:
<style type="text/css"> ..and into the HTML object:
<b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>
I find this method more stable but more steps as you have to position the text. This page last modified on Sunday, June 11, 2006
TnMountainMan expanded on the tutorial so it is easier to follow. |