TW just gives your browser the HTML. If it looks different from what
you expect, it's because of CSS formatting. Work out what you want
different, and add CSS rules to StyleSheet to make it look how you
want.
Also note that Dreamweaver might use IE to render its preview, so you
might see rendering differences between that and Firefox. Welcome to
web development :)
>
> 2) I used tables in my layout, for a quick and easy arrangement; but I
> know there is serious frowning upon tables. I would appreciate the
> helping hand of a CSS master, who could translate the following:
is that example just some text in a grey box? Spend 10 minutes
reading a CSS tutorial. There's a nice CSS reference here:
http://reference.sitepoint.com/css
Cheers
;Daniel
--
Daniel Baird
i neeber olok at ym kyebord wen i tpey
leave out the "body".. that line should just be:
background-color: #eee;
I've also shown the CSS shortcut way of specifying colours -- if you
give just three hex digits, each one is "doubled" to give the colour.
So #eee = #eeeeee, and #36d = #3366dd.
TiddlyWiki has already defined styles for tables to give them borders
etc (check out your Other > Shadowed tab, and have a look through the
various StyleSheet... tiddlers to see the CSS rules TW is already
using).
You need to override those style rules to turn borders for tables off.
Also note that if you get to a point where you think you have
everything right, but some style or other is just not applying, it's
probably a specificity problem. Google for "css specificity" for some
nice descriptions. Generally adding an ID to the selector will solve
the problem.
>
> Optimally, I'd like to render
> the content to fill the display
> area (color-dark blue and
> Arial Black), WITHOUT the
> use of tables.
Generally a div will grow as wide as the thing it's inside of. Post a
URL when you've gotten as far as you can.
Also remember some people won't have the Arial Black font.
Divs always go to the width of the thing they're in. Not like tables
that might be narrower.
If you get rid of the table completely you're looking pretty good:
<html>
<div class="portal">
<div align="center"><strong><span
class="style1">"Hope is that thing <br />
inside us <br />
that insists, <br />
despite all evidence
<br />
to the contrary, <br />
that something better <br />
awaits us<br />
if we have the courage <br />
to reach for it, <br />
and to work for it, <br />
and to fight for it." </span><br />
<br />
<span class="style2">Senator Barack Obama (Iowa Caucus
Night) </span></strong></div>
</div>
</html>
Then you just have to add some top and bottom padding to your portal div.
If you want to keep the borders, just add a border property to the css
of your portal div.
Cheers
;Daniel
Pick out a _block_ of text by wrapping it in a div, give the div a
class, and write a new CSS rule for it to change the text colour.
If you want to pick out some words in a paragraph, wrap them in a
span, <span class="spandemo">like this</span>. Unlike a div, a span
doesn't block out the text it surrounds, so you can do stuff to a few
words in then middle of a paragraph.
>
> 2) How to handle layers, so that 50% opaque image
> of Obama might be in the background; to give
> some depth and texture to the tiddler.
Give your div a background of the image:
background-image: url('images/fadedbarak.gif');
background-position: bottom right;
background-repeat: no-repeat;
That will give you a single image in the bottom left corner, behind
the text, which is I think the effect you want. You'll want to
prepare the image in a graphics editor beforehand to make it look
faded out.
Eric, your post has presciently preempted my pedagogical plan! I
almost did the look-how-wiki-syntax-is-better bit in my last post, but
then I decided to leave it til the next one, so Rafiki got to solidify
his understanding of divs and spans before having to work out
{{why{this}}} is different
{{to{
this
}}}.
Rafiki, Eric's rewrite is pretty much where you want to end up.
(I'd've called style1 something like "citereference" though).