Results 1 to 2 of 2

Thread: Styling a login form

  1. #1
    User
    Join Date
    10-07-11.
    Posts
    59

    Default Styling a login form

    Hi,
    I'm struggling to see how to style my login form.
    I've added the login module to a page and got it to function, but I can't seem to get the text boxes to align or get space between them.
    I've looked at the contao demo website version which looks smart and spaced out, but looking through the back end it doesn't seem to have been given a CSS class or ID and I can't see how it has been styled to look the way it does.

    This is probably really basic, but I really need some help because the CSS code I've tried to apply isn't affecting it, and there are hardly any options in the module itself.

    Thanks

  2. #2
    User
    Join Date
    10-07-11.
    Posts
    59

    Default Re: Styling a login form

    Think I've fixed it:
    I realised I had given my login form 2 CSS class names - in the back end I'd given it a class name on the actual module, and a class name where I'd placed it in the article.

    So now I only have a CSS class name for the form in the article -

    Then using the Google Chrome 'Inspect Element' tool I was able to see what Contao names each of the form elements (e.g. '.formbody') and apply CSS code to that.

    Please let me know if this is the right thing to do.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •