Help - HTML/CSS

Discussion in 'HTML & Website Design' started by daniel000, Jun 17, 2009.

  1. #1
    Hi guys im coding my psd layout ive sliced and ive hit a bit of trouble,
    ive got the banner and the navigation lined up, and a bit of the background. ive got one slice for a left bar that contains 3 sections, this is obviously meant to be on the left but is currently sitting on top of the main content section that is in the middle of the page

    im just wondering if anyone can take a look at the files?

    thanks
    daniel
     
    daniel000, Jun 17, 2009 IP
  2. daniel000

    daniel000 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ok dw bout that

    ive got the following code for thhe content section and i want to no wat code to use to move it left and right exactly instead of using float

    #posts-column{
    	
    	float:right;
    	margin-top: -20px;
    	margin-left:-50px;
    	background-color: transparent;
    	padding-top: 20px;
    	min-height: 480px;
    }
    
    .post{
    	float: right;
    	margin-bottom: 50px;
    	background: #ffffff url(postbg.jpg) no-repeat;
    	padding: 9px;
    	padding-top: 20px;
    	width: 735px;
    	color: #000000;
    }
    Code (markup):
     
    daniel000, Jun 17, 2009 IP
  3. Addmac

    Addmac Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You'd be wanting to position absolute it then set left / right values in px or em or something. But you dont want to do that really, cause it will mean what ever you are populating will end up popping out of the element its contained within (you would of course have to position absolute relative to the elements parent.

    Provide a linky or somethign to make it clearer what you are trying to do et al.
     
    Addmac, Jun 17, 2009 IP
  4. daniel000

    daniel000 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ah ok, this is wat i have the content with headline, i want that in line withh the navigation bar


    [​IMG]
     
    daniel000, Jun 17, 2009 IP
  5. Addmac

    Addmac Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    No link? Just hard to know what those elements you ref'd in the css are exactly, i presume its the left side bar and main content. I may need to reread what you wrote.. ;)
     
    Addmac, Jun 17, 2009 IP
  6. daniel000

    daniel000 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Ohh , nah i dont have it uploaded on the web yet...

    if you can be bothered, and its perfectly fine if you dont want to, i could send over the rar. file of my files? its not big
     
    daniel000, Jun 17, 2009 IP
  7. Addmac

    Addmac Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Ya man, although wouldnt be til tonite, as i am at work at the moment, so dont have that much time.

    However, looks to me like you use of negative margins is a big factor.

    What i would do is put your side bar and main content into one div, and mess with that one. The put your subnav links/breadcrumb (not sure what it is, but the bit below your banner). I would probably position that absolutely relative to the banner container, i.e. have this subnav in the main banner container, set position relative on teh main banner container, then position absolute on the subnav and use the right: Xpx, bottom: -Xpx to position this so it looks right. You will have to add margin to the bottom of the main banner so there is space.

    That is one tack. there are many.

    If you wanna send it, send it to: , will try to look at it tonite. i am in the uk, by the way.. not sure where you are, so what the time diff is.
     
    Addmac, Jun 17, 2009 IP
  8. daniel000

    daniel000 Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    alrite thanks for that mate

    ill send it over now

    im from australia , and yeah not sure on the time diff

    its 11pm now
     
    daniel000, Jun 17, 2009 IP
  9. Addmac

    Addmac Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    well, its about 2pm here, so its what.. 9 hours diff.. you in NE aust perchance?

    Anwyay, throw thems over to me, and i'll sort it for you and throw it back.

    A
     
    Addmac, Jun 17, 2009 IP