Ask a Question related to Macromedia Dreamweaver, Design and Development.
-
rockhiker #1
Center a div tag
Hi
The following div tag displays with a border. However, I want it to display center on the page.
Any ideas welcome
thanks
jim
<div align="center" style=" width: 70%; border: 2px solid #4f7295 ">test</div>
rockhiker Guest
-
How to center a layer ?
Hello friends.. I have created a pop up menu with a tool that creates de code in Javascript. The I have setted it on a layer (if I do not do it, the... -
Center Backgroundimge II
I fought it was fixed, but it ain't. I had problems with centering the background image and user told me to use CSS: No, not as a page... -
is it possible to center a text?
Is it possible to center a text in flash? I have already expose the problem in other forum and I discover we can use css. The problem is those css... -
<center>
Is there a way to use the html code fragment to insert <center> </center> to center the page. It's a pain to redo it every time you update all the... -
How is KEH Repair center !!
"Steve Merrick" <steve@keh.com> wrote in message news:3f1eba74.0306251424.4f80088f@posting.google.com...... -
Al Sparber- PVII #2
Re: Center a div tag
<div style="margin: 0 15%;">
<div style="border: 2px solid #4f7295 ">test</div>
</div>
--
Al Sparber - PVII
[url]http://www.projectseven.com[/url]
Dreamweaver Extensions - DesignPacks - Tutorials - Books
---------------------------------------------------------------------
The PVII Newsgroup | [url]news://forums.projectseven.com/pviiwebdev[/url]
The CSS Newsgroup | [url]news://forums.projectseven.com/css[/url]
---------------------------------------------------------------------
Al Sparber- PVII Guest
-
-
rockhiker #4
Re: Center a div tag
Thanks for the reply.
It worked. Why is the bluerobot method unstable?
rockhiker Guest
-
Bridgetown Ben webforumsuser@macromedia.com #5
Re: Center a div tag
>Hi Ben,
poster's code, we are dealing with a static DIV. The bluerobot techniques>The method I gave will work fine in IE5x on PC. Based on the original
are rather unstable, in my opinion.
Al
I don't quite understand the Bluerobot.com claim(s) about MSIE5.x/Win and so if you could further explain why it is unstable I'd really appreciate it.
Your method (using static DIV) works without any problems? Is the other method only for 'position: absolute;'? So if I'm using a '%' as the width is it better to use the method you described? What if I'm declaring a specific 'width' as opposed to a '%' for that value?
Thanks for any input.
Bridgetown Ben webforumsuser@macromedia.com Guest
-
Josh #6
Re: Center a div tag
I think bluerobot's method is longer, which may be prone to error, hence
Al's comment. But with that said, the bluerobot method works well
when you want your div a fixed width and centered, whereas Al's more
standard method would leave the div as variable at 70% of the page width.
Different methods for different goals, that's all. Al's method doesn't
need to be hacked, whereas bluerobot uses a simple hack to make the div
center up correctly for IE5.5.
- Josh
Josh Guest



Reply With Quote

