Reply
Css design loading in the wrong place until fully loaded?
Old 01-29-2007, 02:48 PM Css design loading in the wrong place until fully loaded?
Novice Talker

Posts: 6
Hello this is my first post so please be Gentle!

I am just learning CSS design conceptss and have been using the Dreamweaver behavior from Studio VII and it works great but for one issue.

When this page www.jacksonshg.com/newjhg
Loads it is left justified and when it finishes loading it moves to the center where I want it to be for all screen resolutions.

Can anyone help me understand what I am doing wrong and offer a solid fix.

Thanks in advance
Billy

P.S. LadynRed I am trying to take your advice and redo the design without tables.

Your advice is correct!
Jickimojo is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 01-29-2007, 03:02 PM Re: Css design loading in the wrong place until fully loaded?
Novice Talker

Posts: 6
Can someone move this to the CSS forum I posted it in the wrong section.
Thanks Billy
Jickimojo is offline
Reply With Quote
View Public Profile
 
Old 01-29-2007, 03:32 PM Re: Css design loading in the wrong place until fully loaded?
LadynRed's Avatar
Super Moderator

Posts: 6,743
Location: Tennessee
I believe it's happening because you're using position:absolute for everything. The browser cannot calculate where things should be until the entire page is loaded first.

Position: absolute for everything simply isn't necessary and can cause many other problems. Use the normal document flow and probably floats where you actually need to position something.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-29-2007, 03:41 PM Re: Css design loading in the wrong place until fully loaded?
Novice Talker

Posts: 6
Thanks LadynRed.


Can you give me an example of what you mean by using the "normal document flow"

Using the code below

#Layer1 {
position:absolute;
left:107px;
top:21px;
width:790px;
height:518px;
z-index:1;
background-color: #FFFFFF;
overflow: auto;


Sorry for my ignorance I am just a visual person and it helps for me to see it.

Thanks again
Billy
Jickimojo is offline
Reply With Quote
View Public Profile
 
Old 01-29-2007, 03:57 PM Re: Css design loading in the wrong place until fully loaded?
Novice Talker

Posts: 6
I have reviewd this:
http://www.w3.org/TR/CSS21/visuren.html#normal-flow

But am still confused on what to do I tried to change the position attribute and it just jacked the design all up.

I am so sloooooowww at this!

Thanks for any help
Jickimojo is offline
Reply With Quote
View Public Profile
 
Old 01-29-2007, 04:04 PM Re: Css design loading in the wrong place until fully loaded?
LadynRed's Avatar
Super Moderator

Posts: 6,743
Location: Tennessee
The normal document flow - top to bottom, left to right. If you want a header first, you put that in your HTML first. Then the content area, then the footer. You then use floats to push things around left/right where you want them.

Of course it's going to jack up your design, just taking out the absolute rules will do that.

My suggestion, look at these resources:
http://css-discuss.incutio.com/?page=FloatLayouts

You might also try downloading a couple of these templates and looking at how they are coded: http://www.openwebdesign.org/
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Css design loading in the wrong place until fully loaded?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15350 seconds with 12 queries