SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    textarea width seems bigger in chrome

    As the topic suggest, i have a textarea box which seems a little bigger in chrome than in firefox. www[dot]newdaybankruptcy[dot]com
    All those who wander aren't lost.

  2. #2
    SitePoint Evangelist silver trophybronze trophy
    Join Date
    Jul 2013
    Posts
    406
    Mentioned
    21 Post(s)
    Tagged
    0 Thread(s)
    The width of the textarea is defined as cols="29", what means: 29 character spaces. Font-size dependent! And font-sizes have small differences (x 29) in browsers / the visitor can have font scaled.
    Solution: omit the cols, and give the exact width with css: {width: 268px;}. Ready.

  3. #3
    SitePoint Wizard bronze trophy PicnicTutorials's Avatar
    Join Date
    Dec 2007
    Location
    Carlsbad, California, United States
    Posts
    3,623
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Css will override columns set. You can leave the columns for when css is off. Which happens all the time lol. 98.5% sure on that.

  4. #4
    SitePoint Wizard nofel's Avatar
    Join Date
    Aug 2007
    Location
    Earth
    Posts
    1,766
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys. it solved my problem!

    p.s - how do i control the value of input type. my text seems a little off from the button in regards to placement.
    All those who wander aren't lost.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •