Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-17 00:44:21

camello
Member
From: Lisbon
Registered: 2006-01-15
Posts: 63
Website

I'm having problems to create diferent forms, whith different styles

Hi,

I’m having problems to create diferent forms, whith different css style atributes.

The forms are different ways of displaying the same article, by showing or hiding some tags and changing other tags style atributes.

I’ve created 3 article forms (Headlines a, Headlines b and Headlines c). The problem is that healines b and c tend to display the same style format I’ve gave to Headlines a, regardless of any changes I do to they’re own style atributes. Maybe it’s important to say I’m displaying all the 3 (4, in truth) forms on first page, at the same time (www.semanariocientifico.com).

Is it supposed to happen or are my css styles just a joke?

Thanks

camello

Here are my forms:

————————————————————————————————————————————

Headlines a:

<code>

<STYLE type=“text/css”>

.antetitulo { color: red; font-size: 70%; font-weight: bold; margin: 0 0 0 15px;}
.title a { color: #0066CC; font:arial ; font-size: 100%; font-weight: bold; text-decoration: none; }
.superlead { color: black; font:arial; font-size: 70%; }
.image {float:left; margin: 0 5px 0px 0px;}

</STYLE>

<p>
</p>
<p>
<SPAN class=“antetitulo”><txp:custom_field name=“custom1” /> <br> <hr> </span>
</p>

<p>
<SPAN class=“image”> <txp:article_image /> </span>
<SPAN class=“title a”> <txp:permlink> <txp:title /> </txp:permlink> </span> <SPAN class=“superlead”> <txp:custom_field name=“custom2” /> </span>
</p>

</code>

————————————————————————————————————————————————-

Headlines b:

<code>

<STYLE type=“text/css”>

.antetitulo { color: red; font-size: 70%; font-weight: bold; margin: 0 0 0 15px;}
.title a { color: #0066CC; font:arial ; font-size: 100%; font-weight: bold; text-decoration: none; }
.superlead { color: black; font:arial; font-size: 70%; text-align: justify; }
.image {float:left; margin: 0 5px 0px 0px;}

</STYLE>

<p>
</p>
<p>
<SPAN class=“antetitulo”><txp:custom_field name=“custom1” /> <br> <hr> </span>
</p>

<p>
<SPAN class=“image”> <txp:wet_article_thumb /> </span>
<SPAN class=“title a”> <txp:permlink> <txp:title /> </txp:permlink> </span><br><span class=“superlead”> <txp:custom_field name=“custom2” /> </span>
</p>
<hr>

</code>

——————————————————————————————————————————————————————————————-

Headlines c:

<code>

<STYLE type=“text/css”>

.antetitulo { color: red; font-size: 70%; font-weight: bold; margin: 0 0 0 15px;}
.title a { color: #0066CC; font:arial ; font-size: 90%; font-weight: bold; text-decoration: underline; }
.superlead { color: black; font:arial; font-size: 70%; }
.image {float:left; margin: 0 5px 0px 0px;}

</STYLE>

<p class=“antetitulo a”><txp:custom_field name=“custom1” /> <br> <hr> </p>
<p><SPAN class=“title a”> <txp:permlink> <txp:title /> </txp:permlink> </span> <SPAN class=“superlead”> <txp:custom_field name=“custom2” /> </span>
</p>
<hr>
</code>

———————————————————————————————————————————————————————————————

website: www.semanariocientifico.com

Last edited by camello (2006-02-17 07:46:02)

Offline

#2 2006-02-18 15:15:46

camello
Member
From: Lisbon
Registered: 2006-01-15
Posts: 63
Website

Re: I'm having problems to create diferent forms, whith different styles

Problem solved.

Must use diferent style names for different forms.

Offline

Board footer

Powered by FluxBB