Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Once you have your site completed, you can start to test it out to make sure it looks good across different browsers as well as browser versions and different screen sizes. So what I can do here in Dreamweaver is I can turn on that Live View button, which is what I've been doing all along as I develop, is to render out the page just to make sure everything is looking good, and it is. I can view this on a desktop size, a tablet size, to see how the content adjusts, and even a mobile device size, just to see how everything looks.
And everything looks pretty good that way. I am going to turn off that mobile size because I want to go beyond what I can do here in Dreamweaver, at least right here with the Live View button, because I can actually view it in an actual browser. So File > Preview in Browser will enable me to preview it in Safari, Chrome, because those are the browsers that I have installed. Whichever ones you have installed will be listed there. And I can see what it looks like in those browsers and as well as how the screen adjusts as well for Safari in this case.
But do be honest with you, I don't have all the browsers installed. You know there is too many different versions as well, so how do I tackle that problem to make sure it looks great across different browsers and browser versions? Well, what I can do is, in Dreamweaver, I am going to turn off that Live View button. I have right over here, oh, look I have this Check browser compatibility button. Perfect. Selecting that, and I can check browser compatibility. As I do that, it runs and checks all of the code and shows me in this Browser compatibility panel, any issues that it might have.
So you can line 17 has an Expanding Box Problem. What does that mean? As I look over here, it says hey, you know what, you probably have content that doesn't fit a fixed width or height that the box is, causing the box to expand. So fix it. Notice that it affects Internet Explorer 6.0. So before I dive into solving this problem, I want to show you that Internet Explorer 6.0 is being tested against because as I select this Play button, I can go to Settings, and you can see right in here all the different browsers I am testing against, Internet Explorer 6.0.
So if that's an objective, make sure that's checked, and that's where that comes from. All right, so for this issue let's take a look at line 17. With that selected, even as a double-click it, you can see highlights that box. That's really the offending box. I can go to Split view, and I can see oh, that PNG file, that image, is 220 pixels wide by 103 high. But the box, this logo, that's the issue. So I am going to go into my stylesheet.css, going down to that logo selector.
This is the box that's having the issue. And you see the height looks pretty good because the height is 113 and the height there is 103. It's really the width is smaller than the width of the image. So I need to change that to a minimum of 220 in this case. Hitting enter. With that done, I can go back over here and check browser compatibility. Notice how it clears out that problem, and everything is good. Going to Design view, I can say you know what, I don't have any more issues so therefore I can save all pages, save everything, and I can move on to testing some of the other pages as well.
So I am going to open up the about page, and again, this is in Chapter 09/01 Begin, if you have access to the exercise files. I am going to just test out this about page by doing the same thing, which is going to be check browser compatibility just like that. Oh good, I like that, no issues. Let's move on. I am going to open up the portfolio page. Again, this is a little more complex. I have this portfolio down in here of images and even a video, so let's see what happens in here.
Check Browser Compatibility, oh the same issue: Expanding Box Problem. Double-clicking it, I can see that box. That's the offending box right there. And if I go to Properties, I can see it's that container. Okay, so that's the issue. So let's take a look at that container. As I close those other CSS style sheets, I can see my container right there. So that's the issue. So I can take a look at it, but know you can also view these solutions for this issue on adobe.com.
So you can always select that and that will actually jump out to that page and potentially offer up some solutions. In this case, it's saying to use word wrap. That's one way of doing things. Well, they're not really words; they are actually images going on in here. So let's take a look right over here. I am going to show you just a nice technique. I can take a look at-- well may it's the height because it looks like this guy is actually goes clear down here, and he's probably getting cut off right there.
So I can change the height to maybe 100%. Let's try that. Let's run this. Okay that's not the issue. So the Width looks good, because that's 100% as well. And this is interesting because it actually is wrapping the image, so there really isn't an issue that we are going to have. But in order to clear out this problem, did you know that I can turn on or off certain properties? So I can disable any one of these properties to see what the offending code is.
So I can click here to disable that CSS property for the width, and then I can run it, oh, and it clears out that issue. So it turns out that this is going to be fine and actually is not needed in this case. And it gets rid of that issue and in fact, if I just double-check my page, just by saving all my pages, clicking on Live view, you can see how this looks. But I do have this wrapping issue that I'm noticing.
This motion graphics, even as I change the screen size--oh, there it looks good, but obviously I have kind of an issue with that word Motion Graphics. So I actually need to make sure it actually clears out everything on both sides of it. I want to make sure it's on its own line. So let's take a look at that particular item, because since I fixed that problem, I need to make sure this is on its own line. So if I take a look at that object, this here, if I turn off Live view and scroll down, I can see this is an h2 rule.
So I can go into my CSS styles and take a look at h2. And here it says that it's 18 pixels. That's fine. I'll double-click on that h2 because I need to clear it out on both sides. Make sure nothing is on either side of it. So what I am going to do is I am going to go into Box. Again, that was the issue. And I'm going to Clear both, clear out everything on both sides of it. So, don't put anything next to it is what I am saying. Clicking Apply, clicking OK, let's go to Live view. Scrolling down, you can see now it's on its own line.
Even as I go to the tablet size and even the mobile size, everything looks good. Turning that off. All right, that's great. Portfolio looks great. It doesn't have any more issues. I can save all those pages. I can open up the final two pages, which would be in my contact page. Opening that up, running Check Browser Compatibility. No issues there. I love seeing that. Opening up that last page, that thank you HTML. This one is really straightforward.
So checking browser compatibility for that one. Everything looks good. All right, I like this. In fact, I can save all my pages, and this is great. With my site tested and looking great, I can then go into the next step, which would be uploading this website.
Get unlimited access to all courses for just $25/month.Become a member
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.