Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Pages: [1] 2

Author Topic: <br />  (Read 9582 times)

alpha10

  • Newbie
  • *
  • Karma: 0
  • Posts: 42
<br />
« on: February 16, 2007, 10:25:28 AM »

In my current template, I have to use
 when I need a space between paragraphs, how can edit the CSS, so that when I write an article I dont need the
 to divide the paragraphs ?

Thanks
« Last Edit: August 22, 2007, 06:28:11 AM by Phil Martin (Philmoz) »
Logged

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly
<br />
« Reply #1 on: February 16, 2007, 10:56:54 AM »

possibly

p {padding 0 0 1.5em 0;}

I think...   ::)

If you don't want to affect other areas of the site, then determine what <div> the article is rendered in, and target p for that div.

eg, if <div id="middle">
then
#middle p {padding 0 0 1.5em 0;}
« Last Edit: August 22, 2007, 06:28:52 AM by Phil Martin (Philmoz) »
Logged
Of all the things I have lost, it is my mind that I miss the most.

Patric Ahlqvist

  • Nobodys perfect, but Im pretty effing close
  • ULTIMATE member
  • ******
  • Karma: 65
  • Posts: 4867
  • I'm a self-made man and worships my creator.
    • p-ahlqvist.com
<br />
« Reply #2 on: February 16, 2007, 11:05:08 AM »

Not only do you think, Phil... you think good ;) That is how it's done, yea ! Right on ! Far out :lol:
« Last Edit: August 22, 2007, 06:29:40 AM by Phil Martin (Philmoz) »
Logged
"It's only dead fish that goes with the flow... "
Updated

alpha10

  • Newbie
  • *
  • Karma: 0
  • Posts: 42

« Reply #3 on: February 16, 2007, 11:13:56 AM »

I will try.

Thanks
Logged

alpha10

  • Newbie
  • *
  • Karma: 0
  • Posts: 42

« Reply #4 on: February 16, 2007, 03:47:52 PM »

This works:

#primary_content p {
margin-bottom: 1em;
}

But I do need to add

for each paragraph, is that normal using sNews ?

Logged

tarmithius13

  • Sr. Member
  • ****
  • Karma: 7
  • Posts: 469

« Reply #5 on: February 16, 2007, 03:53:11 PM »

Yes as sNews does not seem to put a linebreak in when using the article editor. Question for the next version: will this feature eventually be implemented?
Logged
The trick to flying is to throw yourself at the ground and miss.

Free sNews templates HERE

Luka

  • Administrator
  • ULTIMATE member
  • ******
  • Karma: 36
  • Posts: 1716
    • http://www.snewscms.com

« Reply #6 on: February 16, 2007, 03:55:57 PM »

Paragraphs aren't ment to be divided with


You need to define that with CSS:

Code: [Select]
#main_content p {
    margin: 0 0 15px 0;
    line-height: 1.6em;
}
I don't think we will implement automatic break row cause it would cause many problems related to semantics.
Logged

tarmithius13

  • Sr. Member
  • ****
  • Karma: 7
  • Posts: 469

« Reply #7 on: February 16, 2007, 04:10:00 PM »

Would it be possible to insert the paragraph tags instead of a linebreak automatically? if not then just ignore my comment as I was just thinking with my keyboard.
Logged
The trick to flying is to throw yourself at the ground and miss.

Free sNews templates HERE

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca

« Reply #8 on: February 16, 2007, 04:28:57 PM »

Sure... as you are typing your article content into the text area.
Start by clicking the "P"-button - 4th over from the left, just below the text area.
This gives you the opening and closing tags for your paragraph. Type your paragraph sentences in between them. When you are ready to start your next paragraph... do the same... and so on. And if you have used Luka's css snippet in your style.css file, your paragraphs will be spaced accordingly.

If you want to have your text justified - squared off on both left and right margins... or with a ragged left margin... you simply use in-line styling to modify the opening P-tag with:

text in here

or

text in here

.
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

tarmithius13

  • Sr. Member
  • ****
  • Karma: 7
  • Posts: 469

« Reply #9 on: February 16, 2007, 04:41:36 PM »

I know the buttons are there but sometimes I get lazy and forget to click on it or type in the p tags.
Logged
The trick to flying is to throw yourself at the ground and miss.

Free sNews templates HERE

alpha10

  • Newbie
  • *
  • Karma: 0
  • Posts: 42

« Reply #10 on: February 16, 2007, 09:03:27 PM »

I will try the above code, but it would be nice to have this feature implemented in the next version.
Logged

philmoz

  • High flyer
  • ULTIMATE member
  • ******
  • Karma: 161
  • Posts: 1988
    • fiddle 'n fly

« Reply #11 on: February 16, 2007, 10:28:02 PM »

Quote from: tarmithius13
I know the buttons are there but sometimes I get lazy and forget to click on it or type in the p tags.
If you forget, just highlight the text, and press the P button, and the tags will wrap the text.
Logged
Of all the things I have lost, it is my mind that I miss the most.

brauck

  • Hero Member
  • *****
  • Karma: 18
  • Posts: 556
    • http://www.hbw-webdesign.nl/

« Reply #12 on: February 16, 2007, 10:29:29 PM »

Quote from: tarmithius13
I know the buttons are there but sometimes I get lazy and forget to click on it or type in the p tags.
Well I don't think you can hold sNews responsible for your laziness, do you?  :)
Logged
Confidence is reduced complexity.
brauck.nl for free css templates

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca

« Reply #13 on: February 16, 2007, 10:39:14 PM »

Quote from: philmoz
Quote from: tarmithius13
I know the buttons are there but sometimes I get lazy and forget to click on it or type in the p tags.
If you forget, just highlight the text, and press the P button, and the tags will wrap the text.
It can't get any easier than that! Just a matter of developing new habits.
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

tarmithius13

  • Sr. Member
  • ****
  • Karma: 7
  • Posts: 469

« Reply #14 on: February 16, 2007, 11:00:49 PM »

Quote from: brauck
Quote from: tarmithius13
I know the buttons are there but sometimes I get lazy and forget to click on it or type in the p tags.
Well I don't think you can hold sNews responsible for your laziness, do you?  :)
I am not blaming, just pointing out my laziness ;)

@key, I guess I will have to develop newer habits.
Logged
The trick to flying is to throw yourself at the ground and miss.

Free sNews templates HERE
Pages: [1] 2