4 replies [Last post]
rapids
Offline
newbie
Last seen: 18 years 4 weeks ago
Joined: 2004-08-30
Posts: 3
Points: 0

Im very new to css, and unfortunately Ive thrown myself in the deepend. But that cant be helped Shock .
As usual Ive encoutered a problem, and I was hoping someone might be able to give me some guidance.

this is the basic site Ive been working on. Now the problem is the text in the central box displays as one big block. It doesnt seem to keep any of the original text formatting I saved in the html file .

So I looked around my help guides and found the PRE command, and ended up with this. As you can see it saved some of the formatting for the video card specs, but the paragraph has become one long sentence that goes right off the page Crying

im afraid this is as far as my knowledge goes on CSS, I know I can press enter for each new line within the html document, but when I get this site running I need to be able to paste blocks of text at a time. It just wont work.
So could anyone give me an idea as to how I can set both a boundary for my block of text (within the central box) and also keep the original formatting?
Im sure it is very possible, but I havent found much relating to something quite so specific in the various tutorials out there yet Crying

here is the css code both documents are using

thanks. also if anyone has any other useful info on how I might do something better, feel free to inform me. im keen to learn as much as possible

rapids
(newbie no stars)

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 6 days 15 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

problems with text formatting

Hi rapids,
Why not start the pre after the paragraph.
That way you paragraph will wrap and the video car specs will be formatted as you want.

<p>
So, with that said, today we check out ASUS's first high end ATi solution, the ASUS X800XT Platinum Edition AGP videocard. As far as Nvidia videocards go, ASUS made a reputation based on consistent quality, but can that translate over to their ATi solutions?
</p>
<pre>
The Card

Graphics Engine: ATI Radeon X800 PRO 
Video Memory: 256 MB DDR3 
Engine Clock: 520MHz 
Memory Clock: 1.12GHz(560MHz DDR) 
RAMDAC: 400MHz 
Bus Standard: AGP8X/4X/2X 
Memory Interface: 256-bit DDR 
Max Resolution: 2048×1536 
Video-input: S-VHS and Composite 
VGA Output: Standard 15-pin D-sub 
TV-out put: S-Video and Composite 
DVI Output: DVI-I 
2nd VGA Output: Yes 
</pre>

Hope that helps

rapids
Offline
newbie
Last seen: 18 years 4 weeks ago
Joined: 2004-08-30
Posts: 3
Points: 0

problems with text formatting

hmm I gotta admit I didnt think of that. guess it'll work until I come up with another solution ~_^

I got thinking, could you set a text boundary with the p { } command? usually i'd try before asking but I wont have a chance to tool arounds with this till tomorrow

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 22 weeks 4 days ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

problems with text formatting

After seeing your site, there's a much easier way to keep that simple formatting. If you just want each spec on a new line, use the <br /> tag after each spec. This will break it onto a new line.

Verschwindende wrote:
  • CSS doesn't make pies

rapids
Offline
newbie
Last seen: 18 years 4 weeks ago
Joined: 2004-08-30
Posts: 3
Points: 0

problems with text formatting

rightio thanks for the tips fellas ~_~ I think I can see it would take some fancy code to save the formatting as I want it. guess commands on each paragraph and each bullet style could work for now

by the way, does anyone use an editor for css? I make a lot of mistakes when im typing out the commands using a text document o.O
I want to learn the code by typing it out myself, but something that will catch bad commands would be handy. Kinda like the Netbeans jvm does if anyones done some java programming