SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: Error Message Dialog
-
Sep 3, 2007, 13:31 #1
- Join Date
- Aug 2007
- Posts
- 266
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Error Message Dialog
How do I make a transparent div that covers the whole of the page, whilst display a vertically and horizontally centered div for the error message to be display in?
Upon an "OK" image being clicked inside the dialog div, how do I hide the dialog div and the transparent div?
TicTacLast edited by TicTac; Sep 3, 2007 at 22:49.
-
Sep 3, 2007, 16:59 #2
- Join Date
- Jul 2006
- Location
- Victoria, Australia
- Posts
- 4,122
- Mentioned
- 29 Post(s)
- Tagged
- 2 Thread(s)
Javascript.
Just search for a library like lightbox js that suits your purpose - it's been done before.
-
Sep 3, 2007, 22:50 #3
- Join Date
- Aug 2007
- Posts
- 266
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I don't want to use JavaScript.
How would I create the transparent div and centered div?
TicTac
-
Sep 4, 2007, 00:40 #4
- Join Date
- Jul 2006
- Location
- Victoria, Australia
- Posts
- 4,122
- Mentioned
- 29 Post(s)
- Tagged
- 2 Thread(s)
I don't want to use JavaScript.Upon an "OK" image being clicked inside the dialog div, how do I hide the dialog div and the transparent div?
The CSS used in Lightbox JS shows you both how to create the centered element and the transparent overlay.
Bookmarks