| | |||||
| ||||||||
| Website Development Development concepts, scripts, sponsors and affiliate programs. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Account Suspended Join Date: Jun 2005
Posts: 17
![]() | DIV positioning DIV positioning -------------------------------------------------------------------------------- I've got a div with a colored background and a fixed width and I'm trying to get it centered on the page. However the align property in the div tag doesn't work if I'm using an ID. I've gotten the alignment to work with nesting but then the width of the box gets disregarded. Basically what I want is, say, a 200px wide box with an ID centered on the screen. Any help would be greatly appreciated. I hope I've explained this well enough for someone to understand what I'm asking |
| |
| | #3 (permalink) |
| Senior Member Join Date: Mar 2005 Location: canada
Posts: 1,045
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | you can also use............... <div id="id" style="position:absolute; width:200px; height:24px; z-index:1; <p> your text </p> </div> this will allow you to position your div anywhere on your page that you like.
__________________ Add Me to G+ |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Floating div problem | tha_Gsheep | Programming | 0 | 06-06-2005 08:36 PM |
| CSS positioning issue... | TouCHiNG_CLoTH | Web Design Discussion | 4 | 05-03-2005 07:16 PM |
| Problem with firefox display - div width | volos | Web Design Discussion | 3 | 02-03-2005 10:10 AM |
| div positioning + css + IE problem? | countcobolt | Programming | 0 | 12-22-2004 07:55 AM |
| div height problem | tot | Programming | 2 | 05-12-2004 07:50 AM |