Thread: layout basics

Results 1 to 10 of 23

Hybrid View

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

    Default Re: custom layout

    Yes you do get the id from view source and use it in the stylesheet. You don't just cut & paste - the syntax is different. Where you see <div id="asdf"> in the php file, you use
    #asdf { border: 2px #00aaff;} or whatever
    in the stylesheet.

  2. #2
    Join Date
    Feb 2007
    Posts
    176
    Plugin Contributions
    0

    Default Re: custom layout

    Quote Originally Posted by gjh42 View Post
    Yes you do get the id from view source and use it in the stylesheet. You don't just cut & paste - the syntax is different. Where you see <div id="asdf"> in the php file, you use
    #asdf { border: 2px #00aaff;} or whatever
    in the stylesheet.


    So to change say position of id='atrrib-4' which is an option drop down box on prod info page, in css i, i add this in stylesheet

    #attrib-4 {position:relative: left: 50px;} //fails

    Nothing happens, but i can change other things like color on the whole page so i have referenced it right?

  3. #3
    Join Date
    Jun 2005
    Location
    Cheney WA
    Posts
    1,134
    Plugin Contributions
    0

    Default Re: custom layout

    Mex,

    You say you want to move the drop down atrib box. How do you want to move it? Do you want to bring it up a few lines, or do you just want to move it to the left or right? Setting the position left may not be enough, since there may be something else to the left of it.


    What template are you using?

  4. #4
    Join Date
    Feb 2007
    Posts
    176
    Plugin Contributions
    0

    Default Re: custom layout

    well I said in anothe post( sorry for double posting ), I wanted it to move up and right 50 pixels, I will have to see how it looks.

    I am modifying the prod info page with graphic card prod item 1 on default layout. I don't believe I need modify template for the whole page as i was told to check the id in the source.

    Also I want the image moved but i can't work out heads or tails how to move anything with ZC. The admin section doesn't style things. I get the id of say the optionbox by going to page source and spending a while getting the id=attrib-3.
    Now I am told this isn't want to change to move?



    I know css and have webdeveloper but I need a more specific direction on how to do specific page layout styling.

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

    Default Re: custom layout

    #attrib-4 {position:relative: left: 50px;} //fails

    This isn't going to do anything because it's written wrong. You don't use three colons in succession; you need to make separate elements:
    #attrib-4 {position:relative; left: 50px;}
    or for better appearance
    #attrib-4 {
    position:relative;
    left: 50px;
    }

  6. #6
    Join Date
    Feb 2007
    Posts
    176
    Plugin Contributions
    0

    Default Re: custom layout

    Quote Originally Posted by gjh42 View Post
    #attrib-4 {position:relative: left: 50px;} //fails

    This isn't going to do anything because it's written wrong. You don't use three colons in succession; you need to make separate elements:
    #attrib-4 {position:relative; left: 50px;}
    or for better appearance
    #attrib-4 {
    position:relative;
    left: 50px;
    }
    Ok thanks for that, the example i copied from also had this mistake, and i was starting to think this is impossible and (going stir crazy).

    Does the webdeveloper find error s like this though as I expect i will make more errors?

    NOw using webdevelper is there a way to click on something and get its id?
    eg on an img I want moved with css when i can fid its id?

  7. #7
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: layout basics

    ... life would be much easier if you just move the code in the template around instead of taking days to figure out the CSS
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

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

    Default Re: custom layout

    In the Web Developer toolbar, under Tools there are buttons to validate things including CSS and HTML. As I posted earlier, the Information > Display element info button will do this, as will several other buttons. Look at them all and play around to see what they do.

    The best way to edit code and avoid errors is to use a good programming text editor. I like Notepad++ (available free from Sourceforge); it displays different kinds of elements in different colors, and highlights many kinds of errors for you. You can have a half dozen files open at the same time and work back & forth.
    Since you are working locally, as soon as you save an edit you can refresh your storefront screen and see the effect.

 

 

Similar Threads

  1. Back to Basics w/a Glitch
    By sammirah in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 10 Apr 2012, 08:12 PM
  2. Getting back to basics
    By Rob905 in forum General Questions
    Replies: 2
    Last Post: 17 Jun 2009, 04:18 PM
  3. basics
    By jagguy in forum General Questions
    Replies: 47
    Last Post: 24 Feb 2007, 12:07 AM
  4. Credit Card Basics
    By LeJerque in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 19 Dec 2006, 04:35 AM

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