This is a discussion on "position of text within div tag" within the Web Page Design section. This forum, and the thread "position of text within div tag are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
position of text within div tag
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
position of text within div tag
Hi All
http://uk.geocities.com/johnson463@btinternet.com/ In the above link, the flash animation and text "this is some text" is held within a div called #middlecontainer. I would like to know how i position my text at the top of the division to the right of the Flash object instead of it's current position at the bottom. Whatever changes I make to the CSS affects the Flash as well because they are in the same div. |
|
|
|
|||
|
Re: position of text within div tag
Why not add another div...
Last edited by karinne; Apr 24th, 2007 at 12:17. Reason: Please use [code]...[/code] tags when displaying code! |
|
|||
|
Re: position of text within div tag
I tried that code and added the rule to the CSS but the whole middlecontainer div aligns to the left of the page.
Also, you said add a division called #left but in the HTML you also referrenced a div called #right so does this mean we're adding 2 new divisions? |
|
|||
|
Re: position of text within div tag
For example if you want the two div's side by side apply the float:left propriety to both the id's.
If you want them at the opposite sides apply float:left to #left and float:right to #right. Remember to set the width value for both the containers. |
![]() |
| Tags |
| div, position, text |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| making text field text disapear | Phixon | JavaScript Forum | 4 | Feb 2nd, 2008 07:49 |
| [SOLVED] Image with text -> text with background | alexgeek | Web Page Design | 5 | Nov 13th, 2007 23:25 |
| Text position inside DIV element. | Monie | Web Page Design | 6 | Sep 13th, 2007 13:14 |
| text position | bean_2k1 | Web Page Design | 2 | May 13th, 2006 21:58 |
| Help with position | tunafishy | Web Page Design | 1 | Jul 26th, 2005 03:14 |