Geeks and God Podcast

(206)984-3694geeksandgod@gmail.comfeeds.feedburner.com/geeksandgod
login | register

views help

Howdy,

I've got things running pretty great right now. Now I just need some help.

I used cck to create a news content. I then used views to generate a block so I can put it in a custom region on my site. In that block, the view displays the news title and then the news content. Here's the problem - it's putting a paragraph tag around my news content, creating an extra space I dont want. So it looks like this...

News Title 1

This is News Title's 1 content

News Title 2

This is News Title's 2 content

I want it to look like this...

News Title 1
This is News Title's 1 content

News Title 2
This is News Title's 2 content

I know that seems simple and I'm probably making this harder than it should be, but I can't figure it out! Could anyone help me??

try to fix it in css with a contextual selector

You can fix this is your style.css file. If you send me a link to your page, I'll figure out the exact selector you need. The actual problem is probably that the "New Title" is a header, and margin or padding is added to it in your theme. You'll probably use the unique ID of the block in question, and it will probably look something like this:

#block-id h2 (or maybe h3) {
padding-bottom: 0;
margin-bottom: 0;

If the problem is actually that it's wrapping it in a p tag, then we can fix that with the css as well, but I'll need to look at the code.

Anthony Pero
Minister of Music
Lima First Assembly of God
http://www.limafirstmedia.com/
http://www.anthonypero.com/boo...
http://www.worshipnexus.org

Custom CSS

First, you want to have the paragraph tags. It's good to have proper markup.

You'll want to alter the CSS here. Look for the specific IDs and Classes for these blocks and create some custom CSS.

Matt Farina
Geeks and God Co-Host
www.innovatingtomorrow.net
www.mattfarina.com

Part of the SAP Network