Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7129607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:15:38+00:00 2026-05-28T11:15:38+00:00

I have a question, it’s not the clearest but I wanted to see if

  • 0

I have a question, it’s not the clearest but I wanted to see if anyone might have some ideas on it!

I’m working on an app, currently we only have one theme but in the future we will have many different ones, so this question’s been on my mind a lot….

If you start off with clean HTML, and are just adding elements for styling purposes, is it ok to use jQuery to add extra elements? I think adding things this way makes it much easier to make adaptable layouts, and keeps your code cleaner and easier to understand, but I’ve always heard it’s bad practice.

I use this system for quickly mocking up the files and it is so much faster than sorting through stacks of files and functions and classes to add this markup.

What are some examples of alternative systems for adding this sort of markup besides trudging through tons of code? Maybe with the example of making a static two column layout flexible, or making a sliding doors button throughout the site…if anyone wants to take a stab at it you can also use forms as an example (something that for me has been tricky in terms of advanced styling)…and, heaven forbid, making it all switch to a right to left language layout!

Hopefully some font-end developers can sort of understand my question of wanting to keep my styling markup vs. functional markup separate. I appreciate any thoughts/suggestions/tutorials anyone can recommend!

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T11:15:39+00:00Added an answer on May 28, 2026 at 11:15 am

    That’s pretty much the way jQuery Mobile does it’s formatting.
    You need to put an attribute or two on an element (or nothing for basic elements) and then when your jQM page is about to be rendered jQM comes along and adds heaps of classes to the elements formatting it to suit.

    Bad Practice – No!

    Good Practice, probably especially if you intend your themes to be radically different

    Should probably add that some minimal ‘fixed’ styling would help those who chose to turn off javascript.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have question. I have some app on facebook and getting this error Fatal
I have question, maybe it's not critical in programming, but to me it's very
I have question to Java or C# programmers. I want to render some pages
I have question with this same title here but now as I'll present in
I have question about benefit of using areas and necessity of them. I see
I have question that seems very simple, but I just can't get it right.
This could be a duplicate question, but I have no idea what search terms
I have question about regexp in TCL. How i can find and change some
I have question regarding session.evaluate in SSJS. In a keyword document I have some
I have question that seems simple to you all but can't really get it.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.