Welcome to the Browser-Base Game Zone forums!
edit: For the first issue you can use span or div. Span is the "blank" inline element that you can use for anything and div is the "blank" block element. So if you want it to behave like an <a> element (which is an inline element), you can use <span title="blah> blah </span>
I know what you're talking about, but there are only 3 solutions. Either make all your pages long enough to require a scroll bar, make all pages small enough to not require a scroll bar, or open your window with javascript that sets resizable = false. I have found no other solutions.
You can use pure-HTML/CSS tooltips, basicly you place the box inside element you want to have titled, make it invisible and display upon the hovering over the parental element (parent relative, child absolute)So via this even the second question should be possible
<div class="tooltip">Some wonderful element triggering tooltip<span class="tooltip-content"><b>Whatever</b> you want in<br>this tooltip<img src="blabla.jpg"></span></div>.tooltip { position: relative; // makes the inner absolute elements base coords start in this element, not upper/body}.tooltip-content{ display: none; position: absolute; left: 100px; // you can play with this, % maybe top: 50px; /* other styling */}.tooltip:hover .tooltip-content{ display: block; }
I think it should work if you add a doctype.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><head><style type="text/css">.tooltip { position: relative; // makes the inner absolute elements base coords start in this element, not upper/body}.tooltip-content{ display: none; position: absolute; left: 100px; // you can play with this, % maybe top: 50px; /* other styling */}.tooltip:hover .tooltip-content{ display: block; }</style></head><body><div class="tooltip">Some wonderful element triggering tooltip<span class="tooltip-content"><b>Whatever</b> you want in<br>this tooltip</span></div></body>
[HTML/CSS] multi layered buttonI want to make a button that is built of 2 layers of images + and optional layer in case of hover. The button won't have any text, only images.Of course I want it to work with as many browsers as possible and using as simple/small code as possible and preferably without JS unless it is really needed
#element{ background-image:some_image.png;#element_id:hover{ background-image:some_other_image.png;}
basically you just do element_identifier:hover{ //magic } for all hover related things.
.myPicture{width:100px;height:100px;position:relative;border:1px solid black;display:none;}.myButton{display:block;position:absolute;width:10px;height:10px;}.myButton:hover .myPicture{display:block;}<a href="#" class="myButton"><div class="myPicture"></div></a>