Jump to content

buddaman

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

About buddaman

  • Birthday 12/16/1973

Contact Methods

  • Website URL
    http://

Profile Information

  • Gender
    Not Telling
  • Location
    North Virginia

buddaman's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Float was a better idea by far. Also went with fixed widths on the subcontents and content to keep them from wrapping. using padding and margins to center the subcontents within the content block Thanks for the ideas!!
  2. I think the reason I used <div>s is because I wanted their width to be adjusted based on number of blocks so they would be somewhat centered. I've give float a try and let you know. Thanks!
  3. [!--quoteo(post=371374:date=May 4 2006, 01:57 PM:name=masgas)--][div class=\'quotetop\']QUOTE(masgas @ May 4 2006, 01:57 PM) [snapback]371374[/snapback][/div][div class=\'quotemain\'][!--quotec--] $link = mysql_connect("", "", ""); mysql_select_db("pisos", $link); $sql = "SELECT id, user, email FROM articulos WHERE user = '$user' AND email = '$email'"; $id = $row["id"]; $user = $row["user"]; $email = $row["email"]; [/quote] First, where are you doing the actual sql execute? [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] Warning: rename(,.jpg) [function.rename]: Permission denied in C:\xampp\htdocs\PISOS\final\gifup2.php on line 22 [/quote] The error looks to be permission related. Make sure the webserver has permissions to write to the location you are attempting to move,copy or rename.
  4. I'm trying to use divs to replace tables, so far so good. However, I'm having trouble getting the subcontent blocks to align horizontally Trouble is setting margins and widths as the number of divs will be dynamic (max 4) Example: <div content> ---------------------------------------------------- | block 1 | block 2 | block 3 | block 4 | ---------------------------------------------------- </div> // close content I keep getting the blocks falling vertically instead of horizontally I'm calculating width in a php script that determines how many blocks there will be. Then using [code] <div class="subcontent1" style="width:'.$width.'%"> [/code] for block 1 and [code] <div class="subcontent2" style="width: '.$width.'%; left:'.$margin.'%"> [/code] for the remaining blocks. $margin is increased as $margin = $margin + $width to move the remaining blocks over. I feel I'm either missing something or overcomplicating it. Please help [code] div.content {       position: absolute;       background-color: #fefefe;       color: #000033;       width: 100%;       top:  178px;       left: 0px;       padding: 2px;       font-weight: normal;       overflow: auto;       } div.subcontent1 {       text-align: center;       background-color: #efefef;       border-style: solid;       border-color: #637184;       border-width: 1px 1px 1px 1px;       padding: 2px;       position:absolute;       left: 0;       top: 0;       } div.subcontent2 {       text-align: center;       background-color: #efefef;       border-style: solid;       border-color: #637184;       border-width: 1px 1px 1px 1px;       padding: 2px;       position:relative;       top: 0;       } [/code]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.