Center Web Pages - Page 2

User 631504 Photo


Registered User
22 posts

Actually, If i hightlight everything in the document and click "center", that seems to do the trick (: is that o.k. to do?
User 355448 Photo


Ambassador
3,144 posts

Vito Buonomano wrote:
ALright added that code to the CSS, put <div id="wrapper"> below <head> and below that put the link code. Then before the last line of code I put the second <div>.


When you do HTML tags, they generally need a closing with / so look at your code and make sure you have something like this:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title> My page </title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="wrapper">
put your web page content here
</div> <!-- this closes the wrapper div -->
</body>
</html>


That should have things centered.
User 631504 Photo


Registered User
22 posts

Well I think it worked, cant tell as everything was centered before. I really appreciate your help. Now im designing a nav. bar with DHTM menu designer. So far its coming out good, just takes really long since im brand new at it. Right now I have to copy the code into the html file for the nav to appear, which is a pain because I have to line it up where its going to be before I place it in the document. Is there anyway to work with it in visual edior because this is taking a long time.
User 631504 Photo


Registered User
22 posts

O.k., here is what I have so far for a nav bar,, I just got to add in the links and should be all set. Why is it when I FTP upload, it just uploads the html file and not the support files, I had to do those manually. Youll also see the broken picture link, because its still pointing to the original location on my HDD, how also would i fix this?

www.neastsolar.com/test

Thanks a mill really for your help btw
User 631504 Photo


Registered User
22 posts

That nav bar for some reason doesnt appear in IE8??? This program is becoming increasiingly hard to work with, with the visual editor being about as easy as just hand writing the code.
User 355448 Photo


Ambassador
3,144 posts

First, I think you should get the menu out of the head section and put it in the body section. That may fix the IE8 problem.

The image that does not show is coded as:
src="../../../Documents and Settings/Thomas/Desktop/Neastsolar/Pics/Logos/logo2059239_lg.jpg"

One of your other images is coded as: src="img/m14.jpg"

Did you upload the logo to your image folder? If so, make the logo code read:
src="img/logo2059239_lg.jpg"
User 631504 Photo


Registered User
22 posts

alright, I will try the moving the menu and image Thursday when I get back from NYC. That probaly will work because I uploaded just the script for the menu in IE8 and it showed up fine, so I probaly just put it in the wrong place. I also now am running all the files from a "project" so hopefully the "dependecy" files will be automatically uploaded. This is intense work but still a fun challenge

The position of images (like the logo) shown in visual editor never are the same when put in a browser, typically I have to move them, so Im not sure if there is a fix to that. Same things happen when I select "move/unlock" on objects that came with the template (like bars) Also, There seems to be some limitations that I thought were basic functions, ex is there a way to:
- Add lines (like standard black lines)
- Format text boxes (add fill, borders, color)
- Insert Shapes (ovals, rectangle, square, etc.)
Any way to do any of those would be amazing, cause Im not sure of a way to work around them.

Thanks a mill,, and I apologize for being upset its just a major learning curve from Publisher to this (; and please dont feel rushed to respond as I wont be back to my PC till thursday.

P.S.- did you use CoffeCup HTML 2008 for the roberson family website, it looks really good.
User 355448 Photo


Ambassador
3,144 posts

Let me answer your last question first. I started my web site with MS Publisher. I don't remember the issue but I went looking for help, and found a forum that I thought would help. The only thing they would say is validate your code and then we will help. I found a free program to use, and it kept crashing. Then I found CoffeeCup, and by now, there isn't much left of the original code from MS Publisher (actually it went immediately), and I doubt any of the second program is left. The three sites I have linked are now all CoffeeCup, except for a RSS feed (not feed reader) built by a program I will purchase.

Some of what you want to do is not a feature of the HTML Editor. A graphics program is better at making shapes.

CSS is a great way to add background color, set text size and color, and set borders as you want.

Horizontal black lines ar as simple as <hr> to a simple black line, and with CSS, you can set the size of the line, as well as other features.

For vertical lines, you can set left and/or right borders with CSS styles to set thickness and color.

Once you get used to programming with code, you will appreciate the amount of control you have over how your site looks.
User 631504 Photo


Registered User
22 posts

Good to know that you know where im coming from w/ the Publisher. The IE8 problem w/ the nav bar is fixed, with IE8 moving the page a little around compared to Firefox but nothing noticeable. Alot of this programming seems hard to me coming from graphic design prog. like Publisher where I didnt touch a line of code.

Edit- Just downloaded HTML 2009 seems to be great except now my nav bar wont appear, and when I open it with the CSS menu creator, although all the settings are there, it still wont "preview" in FIrefox or IE. Is there a fix for this? And also a fix for the whole thing where added images appear differently in a browser vs. visual editor?
User 631504 Photo


Registered User
22 posts

Well I decided to recreate the menu w/ CSS, and wow, it looks amazing, and im getting a hang of CSS now. Still wish there was something I could do about the image positioning.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.