|
|
|
|
Thread title: space using CSS? |
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
04-29-2006, 06:19 AM
|
#1
|
Status: I love this place
Join date: Apr 2006
Location: Canada
Expertise:
Software:
Posts: 699
|
space using CSS?
Ok, you know sometimes you need things spaced out like if you're using tables? with html you'd use:
Which is just plane annoying and there must be a more semantic way than using that. So can anyone suggest something? Please, thanks
|
|
04-29-2006, 07:53 AM
|
#2
|
Status: Simply to simplify
Join date: Apr 2005
Location: Foxton, Manawatu, New Zealand
Expertise:
Software:
Posts: 5,572
|
Use relative or absolute positioning instead.
|
|
04-29-2006, 07:55 AM
|
#3
|
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
Posts: 3,820
|
There are lots of ways... positioning (relative, absolute), padding, margins, etc. As far as semantic HTML is concerned, don't put in any filler text at all.
|
|
04-29-2006, 03:34 PM
|
#4
|
Status: I love this place
Join date: Apr 2006
Location: Canada
Expertise:
Software:
Posts: 699
|
ok. i'll refer to that then.
Is this peice of code redundant for what I'm trying to accomplish?
.designboxPadding {
padding-left: 10px;
}
.designboxPadding1 {
padding-left: 6px;
}
.designboxPadding2 {
padding-left: 23px
}
.designboxPadding3 {
padding-left: 33px
}
|
Basically I'm trying to accomplish even space between words. It's like I'm trying to create a 3 colum table to display the information. Only I want to do it using CSS. The codes I used worked well but I want to know if their might be a better way or if it's just TOO redundant.
I tried using position but I couldn't get it to work.
|
|
04-30-2006, 01:23 AM
|
#5
|
Status: Simply to simplify
Join date: Apr 2005
Location: Foxton, Manawatu, New Zealand
Expertise:
Software:
Posts: 5,572
|
|
|
04-30-2006, 04:07 AM
|
#6
|
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
Posts: 2,694
|
Try adding:
position: absolute;
That might work.
|
|
05-01-2006, 06:20 PM
|
#7
|
Status: Sin Binner
Join date: Jul 2005
Location: Yorkshire, UK
Expertise:
Software:
Posts: 3,709
|
You mean you want word spacing? I diddn't really understand but there is a CSS value which can put so many pixels between every word?
|
|
05-01-2006, 10:11 PM
|
#8
|
Status: unusual suspect ™
Join date: Feb 2005
Location: Lancaster, PA from London UK
Expertise:
Software:
Posts: 1,814
|
What Techno said
|
|
05-01-2006, 11:11 PM
|
#9
|
Status: Request a custom title
Join date: Dec 2005
Location: LIC (NYC), NY
Expertise:
Software:
Posts: 1,026
|
|
|
05-01-2006, 11:33 PM
|
#10
|
Status: unusual suspect ™
Join date: Feb 2005
Location: Lancaster, PA from London UK
Expertise:
Software:
Posts: 1,814
|
Originally Posted by freedom
letter-spacing?
|
That's for spacing between letters.
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|