B
bulge
I want to move away from tables for positioning images. Just wondering
if there's an easier way?
Here's what I'm currently doing:
Working on a site with:
5 separate images for the navigaton bar.
These images will be consistent on all pages on the site.
I made 5 classes:
..navbar001
..navbar002
..navbar003
..navbar004
..navbar005
1) I take note of exact pixel dimensions of each navbar image.
2) I fill each navbar class (above) with the relevant "absolute" and
"top" and "left" positioning.
3) In the html page itself I've made reference to these classes like
this:
<div class="navbar001">
<img src="images/navbar001.jpg">
</div>
....and so on.
After that's done, I finally see my image(s) positioned normally in IE
5 and Mozilla Firefox 0.9.2 - all without tables! Bewdiful. I give
myself a pat on the back and take a sandwich break.
The problem:
The front page (and the frontpage only, thankfully) has lots more
image slices in addition to the navbar (about 30 images more) that
need to be accurately positioned one-by-one in this (very slow) way.
Is there an easy (freeware, preferably) visual tool that will make my
job easier (that isn't table-based)? Something that lets me slice and
dice a graphic I've created and outputs all positioning info in an
accompanying CSS file?
if there's an easier way?
Here's what I'm currently doing:
Working on a site with:
5 separate images for the navigaton bar.
These images will be consistent on all pages on the site.
I made 5 classes:
..navbar001
..navbar002
..navbar003
..navbar004
..navbar005
1) I take note of exact pixel dimensions of each navbar image.
2) I fill each navbar class (above) with the relevant "absolute" and
"top" and "left" positioning.
3) In the html page itself I've made reference to these classes like
this:
<div class="navbar001">
<img src="images/navbar001.jpg">
</div>
....and so on.
After that's done, I finally see my image(s) positioned normally in IE
5 and Mozilla Firefox 0.9.2 - all without tables! Bewdiful. I give
myself a pat on the back and take a sandwich break.
The problem:
The front page (and the frontpage only, thankfully) has lots more
image slices in addition to the navbar (about 30 images more) that
need to be accurately positioned one-by-one in this (very slow) way.
Is there an easy (freeware, preferably) visual tool that will make my
job easier (that isn't table-based)? Something that lets me slice and
dice a graphic I've created and outputs all positioning info in an
accompanying CSS file?