"Firas D." <fd********@fir asd.org> wrote:
http://www.firasd.org/scrapbook/poet...vercheevy.html
This is probably wishful thinking, but it's worth a shot.. is there a
way to put four different images on the corners of the bordered div? To
make it look framed, kinda?
You got two options:
[1] Wait ten years until CSS3 is widely deployed:
[2] Wrap it in four DIVs:-
<div class="content one">
<div class="content two">
<div class="content three">
<div class="content four">
and use the classes .one .two etc. to put background images in the
corners. This ugly markup is marginally better than using a table
which would require 9 cells just to place the 4 corners.
Now let's talk about XML. Here's how the page begins, complete with
the fuzzy dice and all:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
And here's how it continues:
<div class="content" >
<center>
<b>Miniver Cheevy</b><br>
<tt>Edwin Arlington Robinson</tt>
</center>
<p>
Miniver Cheevy, child of scorn,<br>
&nb sp;Grew lean while he assailed the seasons<br>
He wept that he was ever born,<br>
&nb sp;And he had reasons.
<p>
I thoroughly approve of using simple paragraphs and line breaks (the
trendies would have you marking that up with a lot of <li>...</li>
because you know, "A poem is a list of lines," "A gallery is a list of
images," "A navigation bar is a list of links"...), but since it is
fad-compliant XHTML, one <p> should </p> before the next <p> opens.
(Those <br>s look too normal to be fashionable, too.)