944,118 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Jul 10th, 2005
0

Website width

Expand Post »
Sorry to bother you all, extreme HTML newbie here ....

I recently purchased a premade website from 4templates.com, here is the link to the site I acquired here. Now, being the dork that I am, I didn't question the sites ability to fill fullscreen, and realised post purchase, that I had a limited width site, which sort of doesn't suit my needs. Before purchasing one that does, is there a way to make this adjust to screen res automatically?.

The index file is located here for anyone to have a look at, sorry you will have to use the "view page source" function to see it.

Would greatly appreciate any help/suggestions
thank you
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kronos is offline Offline
6 posts
since Jul 2005
Jul 10th, 2005
0

Re: Website width

Can you post the contents of main.css? It looks like the page uses the relative div with auto margins trick. If that's the case, then you'll see something like this:
HTML and CSS Syntax (Toggle Plain Text)
  1. div#wrapper {
  2. position:relative;
  3. width:70%;
  4. margin-left:auto;
  5. margin-right:auto;
  6. }
Change width from whatever it is to 100%, that should fix your problem if I understand it correctly.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Jul 10th, 2005
0

Re: Website width

Search the index.html file for width="763". Change it to width="100%". But I don't think it will look pretty as it seems that the page is build for a fixed width.
Reputation Points: 15
Solved Threads: 3
Junior Poster in Training
JoetjeF is offline Offline
67 posts
since Jun 2005
Jul 10th, 2005
0

Re: Website width

CSS file is here , it does not appear to have any width references.

The width 100% trick works, however like you said, with the whole thing being built on tables, it will require some time to fix the mess it makes.

Thanks for the replies so far.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kronos is offline Offline
6 posts
since Jul 2005
Jul 10th, 2005
0

Re: Website width

>it does not appear to have any width references.
Nevermind, the layout is table driven. JoetjeF's suggestion will serve you better.
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Jul 11th, 2005
0

Re: Website width

Some development tools, such as Dreamweaver will allow you to do a find & replace of code in an entire page and an entire site. This could make changing that code much quicker.
rus
Reputation Points: 11
Solved Threads: 1
Junior Poster in Training
rus is offline Offline
50 posts
since Dec 2004
Jul 12th, 2005
0

Re: Website width

Thanks troops, but when I said I was an html newbie, I was not kidding, I understand the fundamental building blocks, but really have no clue what so ever as to the workings of programs like dreamweaver etc, and I think I will have to just purchase a fullscreen site, I just "don't have the powerrrr"

I have dreamweaver, and attempted to convert width measures to percent, but it did nothing, so I sort of got pee'd off, and had a hissy fit, then stopped, and had a cigarette to calm me down.

Its a pity, because the one I have was the best layout. This will teach me to make wiser decisions before purchasing things.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kronos is offline Offline
6 posts
since Jul 2005
Jul 12th, 2005
0

Re: Website width

Breathe... exhale... breathe... exhale...

Understandable, that's why we are all here. When you changed the width from absolute (a defined number like 800 pixels) to percentage it was probably only in the <table width=...> tag. If the table cells (the tag is <td>) has the width predefined as absolute, the you can chage your table to what ever you want and it won't make a difference. I should have mentioned this when I gave you the Dreamweaver advise.

Anyhow, if you have more time than money (like a lot of us) and want to dig a little deeper, you could figure out what the percentage would be for each of the table cells and do the same find/replace.
rus
Reputation Points: 11
Solved Threads: 1
Junior Poster in Training
rus is offline Offline
50 posts
since Dec 2004
Jul 12th, 2005
0

Re: Website width

>I just "don't have the powerrrr"
You can't look through a text file and change 763 to 100%? :rolleyes:
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Jul 12th, 2005
0

Re: Website width

Thanks Rus, I will look into that tonight, I had another play last night, and got the page to go to screen res width, but the top nav bar buttons would not work, and stayed bunched up on the left of the screen.

Do I need to tag the cells of each of these, to a set %, so if there is 8 buttons up there, set the percentage to 100 / 8 (12.5% ea)?

Narue, I found that tag that just had the width in pixels, and tried changing it to 100%, but it only expanded certain aspects of the site, and left others in the old size.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kronos is offline Offline
6 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: SSI #include (JS)
Next Thread in HTML and CSS Forum Timeline: text orientation





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC