![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
| | img | | | +----------+ |
|
img | | | +----------+ |
#2
| |||
| |||
|
|
I want to create a "table" using CSS to display book covers and short reviews where the This is some test, yada, yada, yada +----------+ | | | | | img | | | | | +----------+ --------------------- hr here --------------------- This is a review of the next book. It +----------+ a bit longer but neither one is as | | tall as the book covers. | | | img | | | | | +----------+ --------------------- hr here --------------------- but the HR elements run through the covers, not under them. |
#3
| |||
| |||
|
|
I want to create a "table" using CSS to display book covers and short reviews where the This is some test, yada, yada, yada +----------+ | | | | | img | | | |
#4
| |||
| |||
|
|
In article 1170282456.749737.92... (AT) h3g2000cwc (DOT) googlegroups.com>, "Chris Nelson" <cnel... (AT) nycap (DOT) rr.com> wrote: I want to create a "table" using CSS to display book covers and short reviews ... |
#5
| |||
| |||
|
|
On Jan 31, 6:51 pm, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote: In article 1170282456.749737.92... (AT) h3g2000cwc (DOT) googlegroups.com>, "Chris Nelson" <cnel... (AT) nycap (DOT) rr.com> wrote: I want to create a "table" using CSS to display book covers and short reviews ... Thanks. That seems to work. I'd really like my images to alternate right and left floats. Right now I've got a float:left in my bookcover class and I can create bookcover-l and bookcover-r classes which have different floats but I was wondering if there's a clever way to have them alternate. The best I've come up with is to make them all bookcover and add a bit of JavaScript that runs when the page loads, ... |
#6
| |||
| |||
|
|
"Chris Nelson" <cnel... (AT) nycap (DOT) rr.com> wrote: I'd really like my images to alternate right and left floats. Right now I've got a float:left in my bookcover class and I can create bookcover-l and bookcover-r classes which have different floats but I was wondering if there's a clever way to have them alternate. The best I've come up with is to make them all bookcover and add a bit of JavaScript that runs when the page loads, ... I would do it by class and not rely on js which might be turned off or not perfectly functioning in some machines... |
#7
| |||
| |||
|
|
On Feb 1, 5:24 pm, dorayme <doraymeRidT... (AT) optusnet (DOT) com.au> wrote: "Chris Nelson" <cnel... (AT) nycap (DOT) rr.com> wrote: I'd really like my images to alternate right and left floats. Right now I've got a float:left in my bookcover class and I can create bookcover-l and bookcover-r classes which have different floats but I was wondering if there's a clever way to have them alternate. The best I've come up with is to make them all bookcover and add a bit of JavaScript that runs when the page loads, ... I would do it by class and not rely on js which might be turned off or not perfectly functioning in some machines... While I'm generally conservative and tend to agree with you, if I shy away from JavaScript then I'm discounting any chance of doing anything interesting and AJAX-y. My links look like: div class='book' div class='bookcover' a href='something really long' img src='something.jpg' alt='The Title cover image' title='The Title'/></a /div div class='bookblurb' This is something about the book <a href='something really long'>The Title</a> yada yada yada; more text /div /div and "something really long" tends to be 2-3 lines which have to be maintained in two places and the repetition of the structure is a pain, too; if I change it, I have to edit every book. I'd much rather write a little JavaScript which manipulated the DOM so I could do: script language='JavaScript' book('something really long', 'something.jpg', 'The Title', 'The blurb text and on and on') ...more books here... /script so changing the book() function would change all my book div's. Can you talk me out of that? Is JavaScript and the DOM really so unreliable that I don't want to do that? If that's so, how does anyone ever use AJAX? |
![]() |
| Thread Tools | |
| Display Modes | |
| |