This is a discussion on "Help!!" within the Web Page Design section. This forum, and the thread "Help!! are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Help!!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Help!!
http://www.galaxywebdesign.co.uk/hil...ingdresses.htm
Ok... am working on a site for a new lady. Now, am using CSS buttons but. I am probably being coming blonde hear but the buttons halfway down the page... do I have to put the whole <div id> </div> in every time... because when I try an delete the extra div tags it all goes pear shaped. Thanks in advance Sarah x |
|
|
|
|||
|
<tr align="center" valign="middle">
<td height="38"><div id="maggie"><div align="center"> Courtney</div></div></td> <td height="38"><div id="maggie"><div align="center"> Courtney</div></div></td> <td height="38"><div id="maggie"><div align="center"> Courtney</div></div></td> <td height="38"><div id="maggie"><div align="center"> Courtney</div></div></td> <td height="38"><div id="maggie"><div align="center"> Courtney</div></div></td> </tr> Thats a little bit better... but am still repeating myself and have two </div></div> tags for some reason??? |
|
|||
|
you can't have more than one occurence of an id on one page so you'll need to change those to class="maggie" instead of id="maggie"
why not do this: <tr class="maggie" valign="middle"> <td>Courtney</td> <td>Courtney</td> <td>Courtney</td> <td>Courtney</td> <td>Courtney</td> </tr> and add these to your class named 'maggie' in your styles: height:38px; text-align:center; |
|
|||
|
Thanks Demon...will give that a go
|
|
|||
|
Its not working... but I am not sure what I am doing wrong... I know its something I am putting in wrong :sad:
|
|
|||
|
did you change #maggie to .maggie in your CSS?
|
|
|||
|
No...Its working now though... so what are the different things you can put in fron of the styles...
# . is there anymore? |
|
|||
|
thank you btw... I didn't realise that you had to change the # I was looking in vain for an MSN addy for you<g>
|
|
|||
|
only those two that you need to worry about at this early stage. If you're defining a style for a given HTML tag, then you don't need anything in front of it like:
body { background:#ccc } - sets the background of the page to grey. p { font-size: 11pt } - sets all the text inbetween paragraph tags to be 11pt in size. ID's (#) are used for items that will <u>only appear once</u> on each page like: #pagetitle { color : red } classes (.) are used to affect the style of multiple items on a page like: .highlight { font-weight:bold; color:yellow } |
|
|||
|
thanks Demon, you have been a great help tonight
|
![]() |
| Tags |
| help |
| Thread Tools | |
|
|