|
|
#1 |
|
The WWYD Jerk
(Forum King) Join Date: Jan 2002
Location: Shanghai
Posts: 2,385
|
Need HTML Help
I need some help with a website I'm designing for my parents' company. THe design is all drawn up, but my HTML skills are kaput (I'm using Dreamweaver MX 2004)...
My current hurdle to conquer is CSS or some such. I need text to be 10 px away from every border of the cell that it's in. Apparently this can be achieved with a .css. I've already made default font colours, link colours, etc., but I can't seem to find the spacing in Dreamweaver. I need some help creating a .css or if there's another way to do this? (In Dreamweaver or in code).. Thanks. |
|
|
|
|
|
#2 |
|
Wind Chime of the Apocalypse
Join Date: May 2000
Location: The Forest
Posts: 17,231
|
use the border command.
|
|
|
|
|
|
#3 |
|
The WWYD Jerk
(Forum King) Join Date: Jan 2002
Location: Shanghai
Posts: 2,385
|
That lines my cells with a foogly border that pushes everything out of place. But I'll investigate further.
|
|
|
|
|
|
#4 |
|
Indecisive One
(Senior Member) Join Date: Jul 2004
Location: :morF
Posts: 625
|
This site provides excellent references to HTML and CSS. Look into the padding-left property (CSS) to solve your problem.
[size=1]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the universe trying to produce bigger and better idiots. So far, the universe is winning." - Richard Cook |
|
|
|
|
|
#5 |
|
Forum King
Join Date: Mar 2002
Location: Hell
Posts: 3,309
|
dreamweaver mx 2004 does css real good. and as was said, check padding-left
|
|
|
|
|
|
#6 |
|
Forum King
Join Date: Aug 2002
Posts: 7,267
|
Cleanup: You could also try messing with margin-left.
See http://archivist.incutio.com/viewlist/css-discuss/24950 Freedom of speech is the basic freedom of humanity. When you've lost that, you've lost everything. 1\/\/4y 34|<$p4y 1gp4y 33714y, 0d4y 0uy4y? | Roses are #FF0000; Violets are #0000FF; chown -R ${YOU} ~/base The DMCA. It really is that bad. : Count for your life. |
|
|
|
|
|
#7 |
|
not fucked, not quite.
(Forum King) |
You can use the margin property to apply space on the outside of objects, and the padding property to add space on the inside of objects.
What I'm guessing is that you want something like td { padding: 10px } Although I'd advise against using tables, using css positioned divs are much better. So if you |
|
|
|
|
|
#8 | |
|
Forum King
Join Date: Jul 2002
Location: Norn Ir'nd, leek...
Posts: 6,287
|
Quote:
|
|
|
|
|
|
|
#9 |
|
Major Dude
Join Date: Aug 2001
Posts: 1,117
|
w3schools.com
|
|
|
|
|
|
#11 | |
|
not fucked, not quite.
(Forum King) |
Quote:
|
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|