Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-24 08:32:03

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

styling the bottom border with an image (resolved)

since there’s no tag for bottom-border-image in css2(will be in css3 i read), how do you change the appearance of the bottom border with a custom image to seperate blog posts?

Last edited by mrtunes (2007-03-25 11:01:03)

Offline

#2 2007-03-24 16:56:02

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: styling the bottom border with an image (resolved)

YourDiv{
background-image: url(/path/to/image.gif) repeat-x bottom left;
}

Last edited by mrdale (2007-03-24 16:56:33)

Offline

#3 2007-03-24 23:59:25

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: styling the bottom border with an image (resolved)

mrdale wrote:

bc.. YourDiv{
background-image: url(/path/to/image.gif) repeat-x bottom left;
}

hi thanks for responding. i tried this out on the #center div which is where my main blog content is and i had no luck. on one try it even pushed the footer into the top of the main content area.

background-image: url(/textpattern/txp_img/swave.jpg) repeat-x bottom left;
height: 10px;

i’m modding the kubrick theme and when i rollover the current border/seperator in between blog posts it tells me that it’s coming from the #center div with a sub of div-> img.divider
but i dont see a value for img.divider in my css.

Last edited by mrtunes (2007-03-24 23:59:58)

Offline

#4 2007-03-25 03:25:58

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: styling the bottom border with an image (resolved)

url please

Offline

#5 2007-03-25 10:38:11

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: styling the bottom border with an image (resolved)

mrdale wrote:

url please

you mean url to the site in question or the image? the site is on a test thing that i’m constantly dinking around with so showing a link to that wouldnt be of much use. the url to the image i did verify is correct by getting it to show up in some way or another. just not in the place i want it to show up.

just to be clear, regardless of templates there is this line on the default page and style too that i cant see showing up in the css anywhere as any sort of bottom border that seperates blog posts. i want to remove that and replace it with the image.

am i missing some sort of css code like
article_list p {
background-image….

}

???

my main page is pretty much the default txp blog page if that helps.

<!— center —> <div id=“center”> <txp:article />

<txp:if_individual_article> <p><txp:link_to_prev><txp:prev_title /></txp:link_to_prev> <txp:link_to_next><txp:next_title /></txp:link_to_next></p>
<txp:else /> <p><txp:older>Previous</txp:older> <txp:newer>Next</txp:newer></p>
</txp:if_individual_article> </div>

EDIT: I fixed it all in the default Form;

<txp:comments_invite wraptag=“p” />

<div><img src=”<txp:site_url />images/swave.jpg” width=“400” height=“50” class=“divider” alt=”—-” title=”“ /></div>

Last edited by mrtunes (2007-03-25 11:00:46)

Offline

#6 2007-03-25 16:47:19

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: styling the bottom border with an image (resolved)

problem solved?

Offline

#7 2007-03-25 20:01:54

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: styling the bottom border with an image (resolved)

mrdale wrote:

problem solved?

hah yeah – i discovered that the divider was being placed by the form instead of it coming from the page or the style. so once i saw the default form and how it used 1.gif as a divider, i was able to swap that with my image.

Offline

Board footer

Powered by FluxBB