Activity Stream
48,167 MEMBERS
6718 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1.     
    #1
    Member
    Website's:
    wrzscene.info watchfreetvseriesonline.com

    Default [SOLVED]How to add line seperators HTML

    how can i align text on left and right of a line separator like the one below?



    any help is appreciated
    samipk Reviewed by samipk on . How to add line seperators HTML how can i align text on left and right of a line separator like the one below? http://lulzimg.com/i22/c40e3c.png any help is appreciated Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    I think this will help you mate.

    Code: 
    http://www.microbion.co.uk/web/vertline.htm

  4.     
    #3
    Respected Developer
    here is a small example i make in quick for you.

    Code: 
    <style type="text/css">
    #content{
    	width: 400px;
    }
    #right {
    	float: right;
    }
    #left {
    	float:left;
    }
    </style>
    
    <div id="content">
    
    
    <div id="right">
    Your right content here
    </div>
    
    
    <div id="left">
    Left content here
    </div>
    
    </div>
    basically Div content contains 2 divs (right and left).
    you can set there margin etc in style.
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  5.     
    #4
    Member
    Website's:
    wrzscene.info watchfreetvseriesonline.com
    i actually read that one but the html version has borders and the css version doesnt show how to align text left and right and also doesnt work

  6.     
    #5
    Member
    Website's:
    wrzscene.info watchfreetvseriesonline.com
    Quote Originally Posted by mRAza View Post
    here is a small example i make in quick for you.

    Code: 
    <style type="text/css">
    #content{
        width: 400px;
    }
    #right {
        float: right;
    }
    #left {
        float:left;
    }
    </style>
    
    <div id="content">
    
    
    <div id="right">
    Your right content here
    </div>
    
    
    <div id="left">
    Left content here
    </div>
    
    </div>
    basically Div content contains 2 divs (right and left).
    you can set there margin etc in style.
    thanks for this mate, few questions:
    the <style> part will actually come in html or should i add to css???
    also how to add seperator line?

  7.     
    #6
    Respected Developer
    you can add that part in your css or leave in html with style attribute.

    For lines you can add borders, here is a quick way but you need to adjust your min-height according to your content. there is some other way you can check here
    http://www.webtoolkit.info/css-clearfix.html

    Below example will add quick dirty borders
    Code: 
    <style type="text/css">
    #content{
    	width: 400px;
    	border-top: 1px solid #CCC;
    	border-bottom: 1px solid #CCC;
    	min-height: 50px;
    	padding: 16px;
    }
    #right {
    	float: right;
    	border-left: 1px solid #CCC;
    	padding: 16px;
    }
    #left {
    	float:left;
    	padding: 18px;
    }
    </style>
    
    <div id="content">
    <div id="right">
    Your right content here
    </div>
    
    <div id="left">
    Left content here
    </div>
    </div>
    Bots Development | Web Development | Wordpress Customization | PSD Conversion

    Life has many twists and turns in it, you have to take what you are given and use it for the best.

  8.     
    #7
    Member
    Website's:
    Tastro.org HDTVXviDLOL.com EpisodeSeasons.com FileBorg.org W-47.com
    with float like someone already explained to you above or:

    Code: 
    <div style="text-align:center;">move text to center</div>
    <div style="text-align:left;">move text to left</div>
    <div style="text-align:right;">move text to right</div>
    don't know for what you need it.
    LE with your pr2 site? <a href="http://tastro.org/">Tastro.org</a> or link exchance with our category page: <a href="http://tastro.org/i/hdtv">HDTV</a> | <a href="http://tastro.org/i/dvdrip">DVDRip</a> | <a href="http://tastro.org/i/r5">R5</a> | <a href="http://tastro.org/i/bdrip">BDRip</a> | <a href="http://tastro.org/i/brrip">BRRip</a>

  9.     
    #8
    Member
    Website's:
    wrzscene.info watchfreetvseriesonline.com
    Quote Originally Posted by mRAza View Post
    you can add that part in your css or leave in html with style attribute.

    For lines you can add borders, here is a quick way but you need to adjust your min-height according to your content. there is some other way you can check here
    http://www.webtoolkit.info/css-clearfix.html

    Below example will add quick dirty borders
    Code: 
    <style type="text/css">
    #content{
        width: 400px;
        border-top: 1px solid #CCC;
        border-bottom: 1px solid #CCC;
        min-height: 50px;
        padding: 16px;
    }
    #right {
        float: right;
        border-left: 1px solid #CCC;
        padding: 16px;
    }
    #left {
        float:left;
        padding: 18px;
    }
    </style>
    
    <div id="content">
    <div id="right">
    Your right content here
    </div>
    
    <div id="left">
    Left content here
    </div>
    </div>
    well i dont need borders at all , i just need a line seperator inbetween and thats all, the reason is that there is a LOT of code that will be aligned on the left and right on that line and not just simple text so the simple it is the better it is to sort for me

    Quote Originally Posted by sloddl View Post
    with float like someone already explained to you above or:

    Code: 
    <div style="text-align:center;">move text to center</div>
    <div style="text-align:left;">move text to left</div>
    <div style="text-align:right;">move text to right</div>
    don't know for what you need it.
    please refer to the pic on top to view what i want, the above code you pasted although pretty good but doesnt show how to put a line separator

    am sorry guys but am a beginner so bear with me if you get frustrated

  10.     
    #9
    ψ(`∇?)ψ
    What you showed in image, is table, 2 rows, where one edge have color, nothing else.
    That is how it's done in the image. It isnt any separator, it's just that cells are white, and one of sides have color


  11.     
    #10
    Member
    Website's:
    wrzscene.info watchfreetvseriesonline.com
    never mind guys, found the solution and it was pretty simple in the end, here it is for those of you who might not know

    Code: 
    <div id="left" style="width:50%;float:left;background:green;">left</div> 
    <div id="right" style="margin-left:50%;border-left:solid 1px black;background:red;">right</div>

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. echo this line in php
    By hihotfile in forum Technical Help Desk Support
    Replies: 9
    Last Post: 8th Oct 2012, 03:32 PM
  2. On line list
    By Spooky in forum Feedback and Suggestions
    Replies: 5
    Last Post: 13th Feb 2011, 12:16 PM
  3. Replies: 8
    Last Post: 21st Jul 2010, 06:13 PM
  4. PRiVATE LiNE 0'Sec
    By t00v in forum Completed Transactions
    Replies: 0
    Last Post: 11th Oct 2009, 11:27 PM
  5. need help with this line
    By nelly27 in forum vBulletin
    Replies: 12
    Last Post: 8th Oct 2008, 07:12 PM

Tags for this Thread

BE SOCIAL