Jump to content

css coding problem


DonaldFaulknor

Recommended Posts

/* Profile */
.updateStatus {
  background: url("http://inyoursocialnetwork.netne.net/members/Whiteboard.jpg") no-repeat center top #008d35;
  border: 0 none;
  color:#008d35;
  cursor:text;
  font-family:Kaushan Script;
  font-size:110%;
  width: 230px;
  padding-left:16px;
  padding-top:12px;
  height: 157px;
}

/* Homepage */
.updateStatus1 {
  background: url("http://inyoursocialnetwork.netne.net/members/Whiteboard.jpg") no-repeat center top #008d35;
  border: 0 none;
  color:#008d35;
  cursor:text;
  font-family:Kaushan Script;
  font-size:110%;
  width: 246px;
  padding-left:16px;
  padding-top:12px;
  height: 169px;
}

<!-- Profile -->
<div style=\"float:right; padding:24px; margin-top:96px\">
    <form action=\"update-status.php?id=$_SESSION[user_id]\" method=\"POST\">
        <input type=\"hidden\" name=\"users_id\" value=\"$_SESSION[user_id]\" />
        <textarea class=\"updateStatus\" name=\"statuses\"></textarea><br />
        <center><span title=\"Update Your Status\"><input class=\"dryErasePen\" type=\"submit\" value=\"\" /></span></center>
    </form>
    </div>

<div style=\"float:right; padding:24px; margin-top:96px\">
    <form action=\"update-status.php?id=$_SESSION[user_id]\" method=\"POST\">
        <input type=\"hidden\" name=\"users_id\" value=\"$_SESSION[user_id]\" />
        <textarea class=\"updateStatus1\" name=\"statuses\"></textarea><br />
        <center><span title=\"Update Your Status\"><input class=\"dryErasePen\" type=\"submit\" value=\"\" /></span></center>
    </form>
    </div>

 

I had both html codes set to the same css, and it worked fine for a week.  And without changing anything, all of a sudden, the Box model applied to one page but not the other page.  The first css, padding adds to the overall width, the second css, it doesn't.  Why did it change by itself.  I never even touched the code.

Link to comment
Share on other sites

They don't if you add updateStatus as both textarea classes, they should look the same, are you looking at them in different browsers? Some browsers add a margin to the body tag, some add padding, this is probably being inherited, try adding:

 

 

* {
   margin: 0;
   padding: 0;
}

Link to comment
Share on other sites

Thanks for verifying my confusion.

 

Yes, I DO have a padding and margin reset and NO, they are being viewed in the same browser.

 

It's not a padding/margin variation between browsers or whatever, the difference from one code to the other is EXACTLY what the padding is set at.  Therefore, I have concluded that for one code, padding adds to the overall width and for the other code, it doesn't.  I have to wonder if it's do to an inheritance, sometimes inheritant properties can be hard to find.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.