7 replies [Last post]
skywalker108
skywalker108's picture
Offline
newbie
New Mexico
Last seen: 7 years 2 weeks ago
New Mexico
Timezone: GMT-7
Joined: 2012-10-07
Posts: 4
Points: 5

Hi, I'm working on breakdownshow.com and I am stumped on adding a dotted line after every post.
Tried  div.post {border-bottom: 1px dotted #ed008c;} and  .tags{border-bottom:1px dotted #ed008c;}
I want to target the post footer but .post#footer doesn't work either. Your help is greatly appreciated! Thanks, Luke

//mod edit: When posting a link, be sure to include the protocol prefix, i.e. "http://", else it is interpreted as a relative link within the CSSC site. Fixed ~gt

skywalker108
skywalker108's picture
Offline
newbie
New Mexico
Last seen: 7 years 2 weeks ago
New Mexico
Timezone: GMT-7
Joined: 2012-10-07
Posts: 4
Points: 5

sorry for the format--

shesse,screwed that one up-- I've tried targeting .post {border-bottom:1px dotted #333;}, too

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

It's rendering as an

It's rendering as an <article>
So you could use that like

article {
border-bottom:1px dotted #333;
}

I can't see why .post didn't work.

skywalker108
skywalker108's picture
Offline
newbie
New Mexico
Last seen: 7 years 2 weeks ago
New Mexico
Timezone: GMT-7
Joined: 2012-10-07
Posts: 4
Points: 5

Thanks Tony. I tried both

Thanks Tony. I tried both
article &
article .post
but neither worked.
This theme Blaskan has been really hard to child theme, I've started just editing the orignal blaskan theme itself, but the border's aren't working-- is there another place besides the style sheet I could insert the border..?

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

Are you sure that stylesheet

Are you sure that stylesheet is getting used?
You have a style tag in the head of the page you could try that.
What's the path and name of the stylesheet

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 4 years 45 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

I seem to have no trouble

I seem to have no trouble adding a new ruleset on '.post', 'body .post', 'article.post' there are such minimal rules that I can't really see any issues adding new, everything looks as though it ought to work as has been described.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

skywalker108
skywalker108's picture
Offline
newbie
New Mexico
Last seen: 7 years 2 weeks ago
New Mexico
Timezone: GMT-7
Joined: 2012-10-07
Posts: 4
Points: 5

The stylesheet is within the

The stylesheet is within the child theme: /public_html/breakdown/wp-content/themes/breakdownchild/style.css. I've got an @import to the Blaskan parent-theme style sheet which is also in the /themes folder.
I tried adding : body .post, article.post {border: 1px #ed008c dotted;} at the bottom of the child-theme stylesheet, and then also the parent theme style sheet and neither worked...
Tony, I don't know how to get to the style tag, it's not in my header.php file... Any other ideas? Thanks so much for your help Smile

The Clever Robot
The Clever Robot's picture
Offline
newbie
Winston Salem, NC
Last seen: 6 years 49 weeks ago
Winston Salem, NC
Timezone: GMT-5
Joined: 2012-11-29
Posts: 3
Points: 3

Have you tried using the css

Have you tried using the css override "!important;" to the child style. This will force the site to use your child style no matter where it falls in the cascade (as long as the site is in fact using the child theme of course)

Example:
.post, article.post {border: 1px #ed008c dotted !important;}