Is there somebody out there can help (Full Version)

All Forums >> [Web Development] >> Expression Web Help



Message


genius -> Is there somebody out there can help (6/24/2008 23:08:30)

I have a site that I originally made years ago starting with front page express and afterwards revamping it in frontpage 2000. I have recently purchased expression web and I have started to rebuild the site. Problem is I can't figure out how to get the pages to center. I have tried wrapping them in a div but it doesn't work! Please help me someone!
My site is www.hanita.co.il
Thanks in advance




swoosh -> RE: Is there somebody out there can help (6/24/2008 23:51:52)

Hello and Welcome to Outfront,

One problem that your page has is that just about every element on it has an absolute position set to it.




Tailslide -> RE: Is there somebody out there can help (6/25/2008 2:19:12)

Phew that's a lot of absolute positioning AND a lot of inline styling AND coding errors!! Not the best idea to be honest - makes the page both brittle and difficult to maintain.

Ideally you want to use floats for positioning rather than AP (which will do the job but it's hard to get right) and definitely definitely you want all your style rules in an external stylesheet rather than inline within tags - sort of defies the point of CSS). The coding errors make how the page is displayed very unpredictable as you're relying on various browsers' error handling routines which vary greatly.

Ok well anyway - nagging over. To fix it change this (first div after the body tag):
<div style="width: 833px; margin-left: auto; margin-right: auto;">


to this:
<div style="width: 833px; margin-left: auto; margin-right: auto;position:relative;">




genius -> RE: Is there somebody out there can help (6/27/2008 15:48:53)

thanks I'll give it a go




genius -> RE: Is there somebody out there can help (6/27/2008 15:55:30)

thanks. The problem is as I explained. I have used so many different methods firstly to build the site and then to change it that the code isn't too well written. I just redid the homepage last week by using expression web and dragged a lot of code from the old page. expression web tells me that some of my code is considered out of date, so I suppose I should have rebuilt the site from scratch but I just don't have the time at the moment. But thanks for the response.




genius -> Tailslide you are a genius (6/28/2008 23:55:45)

Damn you are good!
[:D]Did as you said and all is well (apart from all the code errors)
Thanks a million!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875