Contact Us
    SearchSearch   RegisterRegister   Log inLog in 

without line break <div> tag in html

without line break <div> tag in html

Post new topic   Reply to topic     Forum Index -> HTML, CSS
View previous topic :: View next topic  
Author Message

Joined: 28 Jun 2008
Posts: 154

PostPosted: Tue Jul 22, 2008 3:24 pm    Post subject: without line break <div> tag in html Reply with quote


when we use table, and use div inside table div tag automatically break line after div. I want to use div for align left and right for my top menu bar.

when i put align="left" and right, it works fine but it show in next line.


<table width="100%" border="1" cellspacing="0" cellpadding="0">
    <td><div align="left">Left </div><div align="right" >Right</div></td>

This problem of line breaking in div can solve by using position inline of div style

<div align="left" style="display:inline">Left </div><div align="right" style="display:inline">Right</div>

In this both div text show in left side

Another one by floating div

<div style="float:left">Left </div><div style="float:right">Right</div>

Float will keep without line break and align left and align right of div tag
Back to top
View user's profile Send private message

Joined: 17 Jan 2007
Posts: 8

PostPosted: Mon Dec 08, 2008 6:27 am    Post subject: Reply with quote

good technique.......

I will also use this
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> HTML, CSS All times are GMT
Page 1 of 1

Jump to:  
  Quick Post a Reply Topic
  Name (required)  
  Email Address (will not be published) (required)  
  Subject of topic (required)  

  More Links  
JSP Introduction
JSP Setup
Simple JSP Example
JSP Variable
Array Declaration in JSP
JSP Forms and User Input
Form Validation
JSP Cookies
JSP Session Object
Loop, content collection, iterator, conditional check in JSP
JSP Application Object
JSP Include
JSP Response Object
JSP Request Object
JSP Error Handling
JSP File Handling Object
JSP Action Tag
JSP Implicit Objects
JSP Declaration
JSP Directive
JDBC Introduction
JDBC Driver
JDBC Connection
JDBC Prepared/Statement
JDBC ResultSet
JDBC Close Connection object
JDBC Insert
JDBC Display Records
JDBC Update
JDBC Delete
JDBC Sorting
JDBC Query
JDBC Exception
JDBC Add Batch
JDBC Transaction/RollBack