Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-05-2008, 02:28 PM
virtutour
 
Posts: n/a
What's the simplest way of getting my web-site in themiddle

Hello

Im currently in the process of updating my web-site.

You can see the bare bones here:

http://www.virtutour.com/new_web_site

Now before I go any further I would like to get the foundations right now and
make it so the whole thing is horizontally in the middle of the page.whatever
screen it is viewed on

Ive looked this up but there are so many ways most of which are beyond my
comprehension.
What is the simplest way that works?

Please find code attached

Please note I am doing this using an old version of dreamweaver and know very
little about direct coding.

Many thanks in advance

Masten



<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="00053F">
<div id="Layer1" style="position:absolute; left:0px; top:0px; width:810px;
height:528px; z-index:1"><img src="images/background.gif" width="1000"
height="594"></div>
<div id="Layer2" style="position:absolute; left:138px; top:137px; width:595px;
height:410px; z-index:2"><applet name="ptviewer" archive="ptviewer.jar"
code="ptviewer.class" width=700 height=410 mayscript=true>

<param name=file value="pans/pavilion_larger.jpg">

</applet></div>
</body>
</html>

Reply With Quote
  #2 (permalink)  
Old 08-05-2008, 03:50 PM
SnakEyez02
 
Posts: n/a
Re: What's the simplest way of getting my web-site inthe middle

Don't use absolute positioning. If you want your layout to appear in the
center of the screen you can do the following:

<div id="container">
<div="content"></div>
</div>

Then your CSS would look like:

#container {
margin: 0 auto; /* This will do top of the page and center align*/
}

The content wouldn't really need any positioning since it is inside the
container. Unfortunately, there is no way to center the design height-wise on
the screen using CSS like this. I hope this is what you were looking for.

Reply With Quote
  #3 (permalink)  
Old 08-08-2008, 02:30 PM
virtutour
 
Posts: n/a
Re: What's the simplest way of getting my web-site inthe middle

Thanks chaps

Please bear with me as I do not usually do direct coding but just use
dreamweaver 3.0's wysywig editor.

I have tried creating a css style sheet using notepad and renaming it to .css
with the content:

#container { width:760px; margin:0 auto; }

But then when I import the sytle sheet dreamweaver doesn't see it?
Don't style sheets have to start with a full stop

Very confused

Masten


Reply With Quote
  #4 (permalink)  
Old 08-08-2008, 03:18 PM
Malcolm _
 
Posts: n/a
Re: What's the simplest way of getting my web-site in the middle

On Fri, 8 Aug 2008 13:30:49 +0000 (UTC), "virtutour"
<webforumsuser@macromedia.com> wrote:

>
> #container { width:760px; margin:0 auto; }
>
> But then when I import the sytle sheet dreamweaver doesn't see it?
> Don't style sheets have to start with a full stop
>



No - just a normal file name - usually like this main.css

you are thinking of classes which do start with a full stop inside the
style sheet

--

~Malcolm~*...
~*
Reply With Quote
  #5 (permalink)  
Old 08-08-2008, 08:37 PM
virtutour
 
Posts: n/a
Re: What's the simplest way of getting my web-site inthe middle

Hi Malcom

"you are thinking of classes which do start with a full stop inside the
style sheet"

what I dont get is where

#container { width:760px; margin:0 auto; }

goes? In the css file? But dreamweaver wont read it.
-----------------------------------
'Be prepared for a long and tedious learning curve, then'

No problem, but the site will be very simple. Just a container for my work
really.
----------------------------------

Can I take this a step at a time. Please see code below which just has the
main image in it.



Reply With Quote
  #6 (permalink)  
Old 08-08-2008, 09:10 PM
Malcolm _
 
Posts: n/a
Re: What's the simplest way of getting my web-site in the middle

On Fri, 8 Aug 2008 19:37:19 +0000 (UTC), "virtutour"
<webforumsuser@macromedia.com> wrote:

>Hi Malcom
>
> "you are thinking of classes which do start with a full stop inside the
> style sheet"
>
> what I dont get is where
>
> #container { width:760px; margin:0 auto; }
>
> goes? In the css file? But dreamweaver wont read it.




classes - which can be used as many times as you want on a page.

in the style sheet they look like this

..aclass { ..... }


an id which can only be used ONCE in a page

in the style sheet they look lile this

#anID { ....}


note that an ID has a higher significant - and scores higer in
"specificity" - so an ID with the same name as a class will overrule a
class of the same name.


--

~Malcolm~*...
~*
Reply With Quote
  #7 (permalink)  
Old 08-08-2008, 09:54 PM
Malcolm _
 
Posts: n/a
Re: What's the simplest way of getting my web-site in the middle

On Fri, 8 Aug 2008 16:29:17 -0400, "Murray *ACE*"
<forums@HAHAgreat-web-sights.com> wrote:


>
>Having an ID and a class with the same name sounds like confusion to me.
>Better to say that if both an ID and a class apply to the same element, the
>ID's rule will override any conflicting styles from the class, e.g.,
>
>#this { color:red; }
>.that { color:blue; }
>
>...
>
><p id="this" class="that">This text is red.</p>



I agree - and always try not to use the same name for id's as I do for
classes.

--

~Malcolm~*...
~*
Reply With Quote
  #8 (permalink)  
Old 08-09-2008, 01:15 AM
virtutour
 
Posts: n/a
Re: What's the simplest way of getting my web-site inthe middle

OK. Got this to work in netscape 7.. Doesnt work in IE6?

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#container { width:760px; margin:0 auto; }
</style>

<body bgcolor="00053F">

<div id="container"><img src="images/home_page_background.jpg"></div>

</body>
</html>

Reply With Quote
  #9 (permalink)  
Old 08-09-2008, 03:23 AM
Michael Fesser
 
Posts: n/a
Re: What's the simplest way of getting my web-site in the middle

..oO(virtutour)

>OK. Got this to work in netscape 7.. Doesnt work in IE6?


The DOCTYPE is missing, which will kick IE and most other browsers into
quirks mode.

> <body bgcolor="00053F">


Use CSS for background colors.

Micha
Reply With Quote
  #10 (permalink)  
Old 08-09-2008, 10:45 AM
virtutour
 
Posts: n/a
Re: What's the simplest way of getting my web-site inthe middle

Hi Michaal
Sorry havent got a clue what DOCTYPE is, and where does it go in the code?
Thanks
Masten
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:00 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Mortgage Calculator | Extranet | Loans | Credit Cards | WoW Gold



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114