1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

HTML Editing xhtml / css of booksonline template

Discussion in 'Web Development' started by RighTeouS84, Jun 15, 2010.

  1. RighTeouS84

    RighTeouS84 New Member

    Hello,

    I have been trying to edit the bookonline template so that the menu and nav bar is on the right of the screen and the rest of the page is to the left (I want all links are on the right).

    I added float:right to #menu and altered .nav to float:right.

    It does not appear to be working as I expected. I am thinking I have to alter the xhtml somehow but I don't know what to do. Any help please.:)
     
  2. enigma1

    enigma1 New Member

    Changing the floats won't do much. You will need to add and change margins of the various sections too.

    For example for the header div you need to change the
    left: 128px;
    to
    left: 0;

    then on the menu div to add the margin to move it to the right
    margin-left: 502px;

    For the main page content is more complicated because the left column and main page sections are grouped and split into different ones. So you have orangerow and greenrow that include the left links and main content like different rows. Navigation elements should be in an independent section.

    My opinion is to create a new stylesheet and the HTML from scratch, it will take less time and you will be able to use it. As it is now if for instance you add more text inside the orangerow section the content will expand and the orange nav will show margin relative to the extra text height in the main section.

    If you're concerned with the bottom section that won't be aligned use negative margins (side column and main section) to cap it.
     
  3. RighTeouS84

    RighTeouS84 New Member

    Thanks heaps enigma1. You helped me a lot. I will continue creating from scratch.
     
  4. navyfalcon

    navyfalcon Well-Known Member Verified Member