Previous Message
Next Message

New to css

Sent by Lineberger, Scott on 29 March 2010 22:10


Thanks, Tim, that did the trick and put me on the right track.  Now, if I could only decide is
tables are really all that evil!

Thanks,
Scott


-----Original Message-----
From: Climis, Tim [EMAIL-REMOVED]] 
Sent: Monday, March 29, 2010 2:29 PM
To: Lineberger, Scott
Cc: [EMAIL-REMOVED]'
Subject: RE: New to css

> Experiment with left/center/right alignments of the "legend" headings and the buttons;
> Add a background image to each form within the table.
>
> Can it be done?

Yes.

I'm presuming that you want each form to be different, right?  So you need to give each one a way to
select it. Either a class or an id.
Ex:
<form id="track">
....
</form>

<form id="account">
....
</form>

<form id="order">
....
</form>

And then you can be more specific in your CSS.

#track { /* the element with id="track" (in this case a form) */
  background-image: url('relative/path/to/image/file.jpg');
}

#track legend { /* the legend tag inside the form with id="track" */
  text-align: left;
}

Voila!

If you use class names (form class="track") instead of id's then put in a dot (.) instead of a hash
(#).

---Tim
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: