Jump to content

-pollux-

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About -pollux-

  • Rank
    Newbie

Previous Fields

  • Languages
    English, Spanish

Profile Information

  • Location
    Madrid, Spain
  1. Actually, I'm afraid it's not solved... The height is correctly displayed and when you scroll down everything looks ok, but if you need to scroll right or left the div changes its position. Here's the code I'm working with right now. <body style="margin: 0; padding: 0px"><div style="width: 1200px; margin: 0 auto; padding-bottom:50px"> <div style="background-color: #CFC; width: 340px; position:fixed; margin-left: 20px; top:0px; bottom:0px"></div> <div style="background-color: #CCC; width: 340px; height: 395px; position: absolute; margin-left: 20px; top: 0px">&
  2. If you want to center anything, just add margin: 0 auto and you should have it centered.
  3. Hi there. I'be been doing a very simple web recently in which I'd like to have a little green div at the right side and with some sort of a bookmark look. The code I've been using is <style type="text/css">html, body {margin: 0px;height: 100%;font-family: Arial, Helvetica, sans-serif;}</style> <div style="width:1200px; height:100%; margin:0 auto; position:relative"> <!-- Logo --> <div style="width:340px; height:395px; left:20px; position:absolute; z-index:3; background-color:#FFF; box-shadow:0px 0px 15px rgba(0, 0, 0, 0.8); text-align:center"></div> <
×
×
  • Create New...