Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jul 2011
    Posts
    177
    Plugin Contributions
    0

    Default Trying to style the login page

    Hi, my login page is really ugly and I am trying to style it with CSS, the problem I am having is that the I can't elements individually. The page is http://www.pazzle.co.uk/index.php?main_page=login.

    For instance I want to have the billing section float left and the shipping section float right so they are side-by-side, but I can't target those individually and so I end up changing more than I intended. How can I have more control over the elements?

    Ideally I need it to look similar to my no_account page here: (need to have something in cart to see this)
    http://www.pazzle.co.uk/index.php?main_page=no_account
    Last edited by Inxie; 9 Oct 2012 at 10:10 AM.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Trying to style the login page

    Code:
    .loginFieldsetLeft>form>div>fieldset {float: left;}/*billing*/
    .loginFieldsetLeft>form>div>fieldset+fieldset {float: right;}/*shipping*/
    .loginFieldsetLeft>form>div>fieldset+fieldset+fieldset {float: left;}/*login info*/
    .loginFieldsetLeft>form>div>fieldset+fieldset+fieldset+fieldset {float: right;}/*newsletter*/
    Tested on your page.

  3. #3
    Join Date
    Jul 2011
    Posts
    177
    Plugin Contributions
    0

    Default Re: Trying to style the login page

    Quote Originally Posted by gjh42 View Post
    Code:
    .loginFieldsetLeft>form>div>fieldset {float: left;}/*billing*/
    .loginFieldsetLeft>form>div>fieldset+fieldset {float: right;}/*shipping*/
    .loginFieldsetLeft>form>div>fieldset+fieldset+fieldset {float: left;}/*login info*/
    .loginFieldsetLeft>form>div>fieldset+fieldset+fieldset+fieldset {float: right;}/*newsletter*/
    Tested on your page.
    Thanks again, I wonder if your a machine sometimes:) lol.

    What does 'fieldset+fieldset+fieldset+fieldset' do exactly? How does that work?

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Trying to style the login page

    That is called "adjacent selectors", and means (in this case) it applies to a fieldset that is immediately preceded in the output by three other fieldset elements at the same hierarchical level. (It would also apply to a fieldset preceded by four or more other fieldsets.)

    Since none of the elements under .loginFieldsetLeft have classes or ids, it is necessary to describe the child element path all the way down from there, so the rule applies only to that page. Otherwise it could apply to any page that happened to have that sequence of elements.

  5. #5
    Join Date
    Jul 2011
    Posts
    177
    Plugin Contributions
    0

    Default Re: Trying to style the login page

    Quote Originally Posted by gjh42 View Post
    That is called "adjacent selectors", and means (in this case) it applies to a fieldset that is immediately preceded in the output by three other fieldset elements at the same hierarchical level. (It would also apply to a fieldset preceded by four or more other fieldsets.)

    Since none of the elements under .loginFieldsetLeft have classes or ids, it is necessary to describe the child element path all the way down from there, so the rule applies only to that page. Otherwise it could apply to any page that happened to have that sequence of elements.
    I cannot thank you enough for the support you have given me on many so many occasions, god bless you.

 

 

Similar Threads

  1. Trying to style button links on the "Shopping Cart Contents Page"
    By francine in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Mar 2010, 05:54 AM
  2. STUCK!!.... trying to change login page
    By Shane78 in forum General Questions
    Replies: 4
    Last Post: 20 Sep 2009, 11:10 PM
  3. Trying to change login page layout
    By MaryF in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 Jan 2009, 11:09 AM
  4. Trying To Match (Style + Layout) EZ Page Header + Footer...
    By some name not taken in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Oct 2008, 02:14 AM
  5. Replies: 0
    Last Post: 21 Nov 2006, 04:15 PM

Posting Permissions

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