• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Using Divs instead?

Using Divs instead? 17 years 3 months ago #1707

  • dniezby
  • dniezby's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 2
I designed a form that used divs and css instead of tables.

I don't want the help text to show up until someone wants it to. And I want to style the form so it actually looks presentable.

So, here is what I did. Let me know if you can tell me why somethings work and some don't.

Here is the form set up. I used divs instead of tables.
I put the style information in my template's template.css and this section works wonderfully.
<div id=\"rsform\">
<fieldset>
<legend>{formtitle}</legend>
<span class=\"instructions\">Complete this form ONLY for consideration submissions. Coverage service submissions please utilize our Coverage Service Form.</span> <br/><br/>
<form name=\"{formname}\" id=\"{formname}\" method=\"post\" action=\"{action}\" {enctype}>
{formfields}
</form>
</fieldset>
</div>

Here is where I run into problems. For some reason, none of the style information seems to pass through.
<div class=\"links\">
<a href=\"#nogo\">
	<span>{fielddesc}</span>
       <label>{fieldtitle}</a><font style=\"color:#FF0000;\">{validationsign}</font></label>
      {field}<br /><br />
</div>

Let me explain the code.

The LINKS class is supposed to put each field in it's own...container. When someone mouses over the {fieldtitle} it will then activate the a:hover span displaying a box with the {fielddesc} for the viewer.

When coded hard, it works as I've made many many forms with this technique. I'm just trying to get it to work here. In fact, if I look at the generated code, it seems that the divs get removed or something.

Any suggestions?
Dave Niezby
www.nsfilms.com
Nightshade Studios, CEO
The administrator has disabled public write access.

Re:Using Divs instead? 17 years 3 months ago #1724

  • dniezby
  • dniezby's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 2
No one has any suggestions? I can't explain why the individual field code doesn't parse.

You can see that the form set up does work but the fields don't work the way the should. None of the styling makes it through to screen

REMOVED LINK AS FORM IS NOW LIVE. WILL POST DEMO FORM WITH STYLING SOON.<br><br>Post edited by: dniezby, at: 2008/01/28 23:10
Dave Niezby
www.nsfilms.com
Nightshade Studios, CEO
The administrator has disabled public write access.

Re:Using Divs instead? 17 years 3 months ago #1725

  • dniezby
  • dniezby's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 2
Hello?<br><br>Post edited by: dniezby, at: 2008/01/28 23:16
Dave Niezby
www.nsfilms.com
Nightshade Studios, CEO
The administrator has disabled public write access.

Re:Using Divs instead? 17 years 3 months ago #1733

  • alex
  • alex's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 443
  • Thank you received: 3
Hi,

i apologize for the delay in answering you. I am hiring a new person to keep up, although is very hard to find someone. From what i see in your link you managed to work it out. Let me know.
The administrator has disabled public write access.

Re:Using Divs instead? 17 years 3 months ago #1737

  • dniezby
  • dniezby's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 2
Alex, I apologize. I didn't realize that it was only you. You are correct. I did solve the styling issue and will be putting together a tute as soon as I can.

If you want to see what can be done (now that I've figured out the technique) you can view the non-working form here

Check it out. Tell me what you think.

Again, excuse my temperament...I was really getting frustrated and on a deadline to get the form up and seemed I was speaking to deaf ears.
Dave Niezby
www.nsfilms.com
Nightshade Studios, CEO
The administrator has disabled public write access.

Re:Using Divs instead? 17 years 3 months ago #1750

  • dniezby
  • dniezby's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 136
  • Thank you received: 2
This issue has been solved. I figured out how to get the styling done the way I needed. You can view the completed (sample) form in the \"Form Showcase\" forum.

I'll try to post a tutorial when I get a chance.
Dave Niezby
www.nsfilms.com
Nightshade Studios, CEO
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!