Jump to content

Recommended Posts

This is an HTML question, so I'm moving it to the proper board.

 

Explain what you mean by increasing the width.  How does it look now?  How do you want it to look?  Why do you believe width is the issue?  Do you mean the width of the whole sentence or the individual letters?

Link to comment
https://forums.phpfreaks.com/topic/254280-php-styling/#findComment-1303751
Share on other sites

It says your website is under review...

 

As pikachue mentioned, we need to know what the issue looks like as well and what you want it to look like.  Is that font tag in some sort of container where it's getting "squeezed"?  I would play around with it in firebug.

Link to comment
https://forums.phpfreaks.com/topic/254280-php-styling/#findComment-1303768
Share on other sites

Code for the text that I want to increase the width of:

 


('<div id="username">
   <form action="" method="post"/>
	<font color="red"> Wrong username or password, please try again </font>
      <table><tr><td>
      <img src="imgs/Log In/username.png" alt=""/>
      </td><td>
      <input type="text" size="30" name="username" style="background-color:transparent;" />
      </td></tr></table>

      <table><tr><td>
      <img src="imgs/Log In/password.png" alt=""/>
      </td><td>
      <input type="password" name="password" size="30" />
      </td></tr></table>

      <form id="submitb" action="">
      <input type="submit" value="Log in" />
      </form>

      <p class="register">Not yet a member? <a href="Form.html">Register Here</a>, its Free!</p>
</div>');


Link to comment
https://forums.phpfreaks.com/topic/254280-php-styling/#findComment-1303785
Share on other sites

Like maq suspected, your problem is because you've put this text in a narrow container.  It has nothing to do with the text itself or the span around it, it's the fact that it's inside a narrow container.  You can put this text in its own table row with a good colspan:

 

 

('<div id="username">
   <form action="" method="post"/>
      <table><tr><td colspan=2><font color="red"> Wrong username or password, please try again </font></td></tr>
              <tr><td>
      <img src="imgs/Log In/username.png" alt=""/>
      </td><td>
      <input type="text" size="30" name="username" style="background-color:transparent;" />
      </td></tr></table>

      <table><tr><td>
      <img src="imgs/Log In/password.png" alt=""/>
      </td><td>
      <input type="password" name="password" size="30" />
      </td></tr></table>

      <form id="submitb" action="">
      <input type="submit" value="Log in" />
      </form>

      <p class="register">Not yet a member? <a href="Form.html">Register Here</a>, its Free!</p>
</div>');

However, note that your <span> changed to a <font> tag, so I'm pretty much done at this point.

Link to comment
https://forums.phpfreaks.com/topic/254280-php-styling/#findComment-1303814
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.