Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-04-13 07:59:32

gerhard01
Plugin Author
Registered: 2006-12-07
Posts: 108

Can CSS id attributes be applied to wraptags?

(X)HTML class attribute can be applied to wraptags. I sthere are way to do the same with id attributes and produce e.g.

<ul id="example">...</ul>?

Or is the only way to enclose the wraptags with a <div id=“example”> container?

Thanks,

Gerhard

Offline

#2 2007-04-13 09:09:00

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: Can CSS id attributes be applied to wraptags?

I’m not sure that I understand the question but if I do get it… yes, <ul id="example">...</ul> is valid xhtml


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2007-04-13 09:22:12

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: Can CSS id attributes be applied to wraptags?

I think there is a “htmlid” attribute that some tags support but since IDs are only to be used once per element it is simpler to just wrap the element normally in an ID.

Offline

#4 2007-04-13 12:28:48

gerhard01
Plugin Author
Registered: 2006-12-07
Posts: 108

Re: Can CSS id attributes be applied to wraptags?

FireFusion wrote:

I think there is a “htmlid” attribute that some tags support but since IDs are only to be used once per element it is simpler to just wrap the element normally in an ID.

Yes, found a “html_id” attribute, however only for <txp:article_image />, <txp:image /> and <txp:thumbnail /> according to the Textbook. Would be nice to see this attribute also for other tags, e.g. the wraptag of <txp:section_list />.

Offline

Board footer

Powered by FluxBB