www.webdeveloper.com
Results 1 to 2 of 2

Thread: Re-sizing a border

  1. #1
    Join Date
    Jun 2014
    Posts
    12

    Question Re-sizing a border

    Hi, I have a border wrapped around my log in section which extends far off to the right hand side of the page. I'd like it to come in closer to my form's input fields. Here's what I currently have:

    Code:
    #login fieldset input 
    {
     
        padding: 0.5em; 
    	border: 1px solid #E5E5E5;
    	outline: 0; 
    	font: normal 85%/120% verdana, tahoma, sans-serif; 
     
    
    }
    
    #login fieldset 
    {
        border-width: 2px;
    	border-color: #6699FF;
    
    }
    The latter deals with the border around the input fields.

    Let me know if I should include any HTML and thanks to any who try and help

  2. #2
    Join Date
    Oct 2013
    Posts
    381
    Put a width:50%; or whatever in your CSS for fieldset or the containing element.

    <fieldset> is a block-level element so it stretches the entire width of the page unless constrained.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles