This is a discussion on "[SOLVED] css: how do i indent text by one or two spaces away from the left side of th" within the Web Page Design section. This forum, and the thread "[SOLVED] css: how do i indent text by one or two spaces away from the left side of th are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] css: how do i indent text by one or two spaces away from the left side of th
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] css: how do i indent text by one or two spaces away from the left side of th
I am using the code shown here: http://webdesign.about.com/od/css/a/aa072406.htm
thanks in advance for your help |
|
|
|
|||
|
Re: css: how do i indent text by one or two spaces away from the left side of the box
Attached your full code or file (even better) so we know "visually" what is your problem.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
||||
|
Re: css: how do i indent text by one or two spaces away from the left side of the box
Quote:
i hate downloading files
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: css: how do i indent text by one or two spaces away from the left side of the box
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: css: how do i indent text by one or two spaces away from the left side of the box
|
|
||||
|
Re: css: how do i indent text by one or two spaces away from the left side of the box
Hi Jason,
In order to add padding or margin space around elements you need to add the margin:{Top Right Bottom Left ;} or padding:{Top Right Bottom Left ;} proporties to your class attributes. So, using your code as an example. If I wanted to add 10px margin space to the left and right of the r1 class I would do the following:
Good luck. Stew
__________________
WelshStew Lead Administrator tierney rides tboard - uk site | xtreme wales - extreme clothing If you think I've helped, click the "Thanks" webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
|
|
|||
|
Re: css: how do i indent text by one or two spaces away from the left side of the box
How about adding left and right padding to the container?
|
|
|||
|
Re: css: how do i indent text by one or two spaces away from the left side of the box
ok i have tried them and sort of see how it works, but still no closer to getting the effect i need,
the text is flush to the side of the container? i have tried to add the margin and padding but these do not move the text in and away from the side , i need a one or two space gap from the edge of the left hand side of the contain, i think thats what it is. i need it a bit like this ( hello ) at the moment it is like this (hello ) |
|
|||
|
Re: css: how do i indent text by one or two spaces away from the left side of the box
You should specify a width on your container div:
|
|
|||
|
Re: css: how do i indent text by one or two spaces away from the left side of the box
Quote:
If you want to do it the "CSS way", do it the "CSS way". Throw away all the <font> element and use <p> or <h1> instead.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: css: how do i indent text by one or two spaces away from the left side of the box
Did you sort it out jason3107?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: css: how do i indent text by one or two spaces away from the left side of the box
just going to test it out now
|
|
|||
|
Re: css: how do i indent text by one or two spaces away from the left side of the box
I have tested them and it works fine, at least that is my solution.
Maybe there is another solution, for that you have to wait for other member in this forum to give their idea.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
|||
|
Re: css: how do i indent text by one or two spaces away from the left side of the box
yes sorry i did not reply sooner, that is exactly what i needed,
thanks |
|
||||
|
Re: css: how do i indent text by one or two spaces away from the left side of the box
can you please mark as solved, thanks
__________________
WelshStew Lead Administrator tierney rides tboard - uk site | xtreme wales - extreme clothing If you think I've helped, click the "Thanks" webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Always displaying to the left | thewebkid | Website Planning | 10 | Nov 19th, 2007 13:41 |
| [SOLVED] Image with text -> text with background | alexgeek | Web Page Design | 5 | Nov 13th, 2007 23:25 |
| How to indent | aaronh | Web Page Design | 2 | May 11th, 2007 14:19 |
| 2 columns of text either side of Flash | timmytots | Web Page Design | 11 | Nov 29th, 2005 01:18 |
| Client-Side VS Server Side Scripting | redev2006 | JavaScript Forum | 1 | Jul 30th, 2005 19:30 |