954,591 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Website width

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

kronos
Newbie Poster
6 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

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:

div#wrapper {
  position:relative;
  width:70%;
  margin-left:auto;
  margin-right:auto;
}

Change width from whatever it is to 100%, that should fix your problem if I understand it correctly.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

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.

JoetjeF
Junior Poster in Training
67 posts since Jun 2005
Reputation Points: 15
Solved Threads: 3
 

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.

kronos
Newbie Poster
6 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

>it does not appear to have any width references.
Nevermind, the layout is table driven. JoetjeF's suggestion will serve you better.

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

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
Junior Poster in Training
50 posts since Dec 2004
Reputation Points: 11
Solved Threads: 1
 

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.

kronos
Newbie Poster
6 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

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 tag. If the table cells (the tag is ) 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
Junior Poster in Training
50 posts since Dec 2004
Reputation Points: 11
Solved Threads: 1
 

>I just "don't have the powerrrr"
You can't look through a text file and change 763 to 100%? :rolleyes:

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

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.

kronos
Newbie Poster
6 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

I wouldn't change the width of the button TDs, look and see if that is a nested table (a table within a table). If so, the nested table will be inside of it's own TD, just align that to the right, center, or whatever looks best.

rus
Junior Poster in Training
50 posts since Dec 2004
Reputation Points: 11
Solved Threads: 1
 

Thanks rus, I'll give that a whirl tonight

kronos
Newbie Poster
6 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

This is where the main nav button HTML starts, but I dont know which of the tables to mess with, as every second line is

a46.jpga48.jpg l1.jpg a48.jpg l2.jpg a48.jpg

kronos
Newbie Poster
6 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You