• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Web App Style Tags

Community Beginner ,
Aug 01, 2012 Aug 01, 2012

Copy link to clipboard

Copied

I've got a webapp built and nicely styled, but I'd like to be able to control the background-color of the div container from within the Web App, so that they can have different color backgrounds instead of using the same background color from the css id for the container.

Web App as is:

<div id="specials-container">

<div id="specials-title">

<h3>{tag_name}</h3>

</div>

<p class="specials-saleprice">{tag_sale price}</p>

<p class="specials-sqft"> sq/ft. Installed</p>

{tag_picture}

<div class="specials-more"><a href="{tag_itemurl_withhost}">More Details</a></div>

</div>

What I'm trying at the moment is creating a Text String field in the app for the background color, which generates the tag: {tag_bgcolor}

But if I try to style a div using: <div style="background-color:{tag_bgcolor}"> the wysiwyg removes the in line style.

Can you not use tags in styles?  Seems to work perfectly well when doing hrefs, IDs and classes.  Ultimately I could call a different div id that has the particular background colors I want, but then I have to update the CSS with a new id each time I want a new color, versus just putting the color # inside of the app.

Any ideas?

TOPICS
Web apps

Views

527

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Aug 01, 2012 Aug 01, 2012

Have you tried updating the file from dreamweaver or another program over FTP?

You could also try the new file editor in the BC Beta preview admin panels.

It should work, there are no rules to stop it except for the wysiwyg editor that is doing the cleanup on form submit.

Votes

Translate

Translate
Participant ,
Aug 01, 2012 Aug 01, 2012

Copy link to clipboard

Copied

Have you tried updating the file from dreamweaver or another program over FTP?

You could also try the new file editor in the BC Beta preview admin panels.

It should work, there are no rules to stop it except for the wysiwyg editor that is doing the cleanup on form submit.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 01, 2012 Aug 01, 2012

Copy link to clipboard

Copied

LATEST

Didn't think about uploading via FTP, that worked perfectly.

Btw, BC Beta wysywyg does the same thing as the current.

Also thinking that Dreamweaver Plugin would work too.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines