Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-02 13:08:39

groda
Member
Registered: 2007-04-22
Posts: 11

class-problem, i'm afraid it's utterly stupid but easy to solve

Heres my trouble:

Since IE is displaying things wrong i’m adding a special class for showing my page in IE (have a look at www.karsk.se/blogg2, the right field is to wide, pushing the left field down.)

The problem is that a list is rendered in a font that is to big. That makes the field in witch it displays growing in size, making my page look ridiciulous. This is happening even though i defined the field in exakt pixels. How ever, when i try to apply this class to the article list i get an error message:

tag_error <txp:article_custom form=“headline” class=“ie_hack” /> -> Textpattern Notice: unknown tagg-attribute: class on line 582

Obviously, something is wrong, but i dont no why.

<txp:article_custom form=“headline” class=“ie_hack” />

isn’t it supposed to look like that?

Offline

#2 2007-06-02 13:18:29

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: class-problem, i'm afraid it's utterly stupid but easy to solve

<txp:article_custom /> takes no "class" attribute. Look inside the form you use (“headline”) and apply the appropriate class to the elements there.

Last edited by wet (2007-06-02 13:18:42)

Offline

#3 2007-06-02 13:23:46

groda
Member
Registered: 2007-04-22
Posts: 11

Re: class-problem, i'm afraid it's utterly stupid but easy to solve

how do i do to only apply this class to IE browsers? The trick i was trying to use was included in the “head” part of the page. And that doesn’t work now.

Offline

#4 2007-06-02 13:27:17

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: class-problem, i'm afraid it's utterly stupid but easy to solve

Why don’t you use anyone of the ubiquitious methods for conditional IE styles (star hack, conditional comments, and so on)?

Offline

#5 2007-06-02 13:30:29

groda
Member
Registered: 2007-04-22
Posts: 11

Re: class-problem, i'm afraid it's utterly stupid but easy to solve

i’ve been trying this one:

<!—[if IE]> <style type=“text/css”> </style>
<![endif]—>

But i don’t get it to work on the list that is rendered. On not server rendered lists and other stuff it works. But can i apply this to a rendered list?

Thanx for the hack-tips, i’ll check them out!

Offline

Board footer

Powered by FluxBB