Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Test Version Of New Website Design
 
#11
Bob,
Unfortunately, the browsers don't properly use padding and margins the same, so there is no easy way to make everything lineup.  You can make it "good enough" though.
You will need to modify your stylesheet.css
1)  Add the following:
img.floatleft {
      float: left;
      margin: 0 0.8em 0 0;
}
This will create an img class that we will apply to the photo.  The photo will "float: left" so that text will flow around the image on the right side.  The right margin is set to 0.8em.  Use em so that the spacing will adjust if a user changes the fontsize.  As IE7 and Mozilla/Firefox use the padding/margins differently this will go towards making it look better in IE7.  While is will work in Mozilla/Firerfox it won't be quite lined up.
2) change the mainContent section:
     padding: 20px 0 0 10px;
This will set the top padding to 20px and the left padding to 10px.  Again you can play with this to get it the way you want.
Now you will need to modify the bio.html file:
1)  Change your DOCTYPE to:

  See:  http://www.w3.org/QA/2002/04/valid-dtd-list.html
The DOCTYPE you are using is not listed on the w3c.org website and some browsers will go into "Quirk Mode" if the DOCTYPE is not one of the ones listed by w3c.org.
2) Change the for the photo to:
[img]images/bobpeg.jpg[/img]
This will use the new img class so that the margins are set for the image.
These settings look better in IE7 than Mozilla/Firefox but you can play with the margins and padding to see how they change the page.
Keith
Reply


Messages In This Thread
[No subject] - by Sofaspud - 07-17-2008, 04:15 AM
[No subject] - by Kurisu - 07-17-2008, 07:07 AM
[No subject] - by Bob Schroeck - 07-17-2008, 01:43 PM
[No subject] - by Bob Schroeck - 07-17-2008, 06:45 PM
[No subject] - by Bob Schroeck - 07-17-2008, 07:33 PM
[No subject] - by bmull - 07-18-2008, 02:07 AM
[No subject] - by Bob Schroeck - 07-18-2008, 02:49 AM
[No subject] - by Bob Schroeck - 07-18-2008, 05:21 AM
[No subject] - by robkelk - 07-18-2008, 05:25 AM
[No subject] - by bmull - 07-22-2008, 12:21 AM
[No subject] - by Bob Schroeck - 07-28-2008, 02:36 PM
[No subject] - by robkelk - 07-28-2008, 11:52 PM
[No subject] - by bmull - 07-29-2008, 02:55 PM
[No subject] - by Sofaspud - 07-29-2008, 11:28 PM
[No subject] - by Bob Schroeck - 07-30-2008, 01:11 AM
[No subject] - by robkelk - 07-30-2008, 05:32 PM
[No subject] - by Bob Schroeck - 07-30-2008, 06:44 PM
[No subject] - by Bob Schroeck - 07-31-2008, 06:41 PM
[No subject] - by Sofaspud - 07-31-2008, 11:02 PM
[No subject] - by Bob Schroeck - 08-01-2008, 02:05 AM
[No subject] - by Sofaspud - 08-01-2008, 08:30 AM
[No subject] - by bmull - 08-01-2008, 01:50 PM
[No subject] - by Bob Schroeck - 08-01-2008, 01:55 PM
[No subject] - by Bob Schroeck - 08-01-2008, 06:46 PM
[No subject] - by Bob Schroeck - 08-11-2008, 06:54 PM
Missing 404 - by kevncody - 08-11-2008, 11:08 PM
[No subject] - by Bob Schroeck - 08-12-2008, 03:53 AM
[No subject] - by bmull - 08-12-2008, 06:15 AM
[No subject] - by Sofaspud - 08-12-2008, 09:20 AM
[No subject] - by Bob Schroeck - 08-12-2008, 01:04 PM
[No subject] - by robkelk - 08-12-2008, 01:39 PM
[No subject] - by Bob Schroeck - 08-12-2008, 06:44 PM
[No subject] - by bmull - 08-12-2008, 11:15 PM
[No subject] - by Bob Schroeck - 08-13-2008, 12:06 AM
[No subject] - by bmull - 08-13-2008, 05:46 AM
[No subject] - by Bob Schroeck - 08-13-2008, 01:40 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)