|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Member Join Date: Jan 2006 Location: Takatuka Land
Posts: 67
![]() | As you can see my site has a big border on the right hand site ( 30% of the total area ) Doesn’t look good. Can anybody help me to place the site centric? ( 15% on the left and 15% on the right) Where do I have to change it and do I have to change it for each site or just for one? http://www.jpadilla-international.com Thanx
__________________ Funny smilies |
| |
|
| |||||||
| | #2 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Put the contents of the page into a div tag then center the contents within the CSS file, this way, if the viewer is looking at the page with a screen resolution of 800x600, the whole page will be on the screen, and for larger resolution screens, the page will be centered. On my system, it doesn't need to be moved over because I use a screen resolution of 800x600. If you moved it over, you would drive away alot of viewers because having to use a scroll bar to read the content can be annoying, but I think what I said before should give you the solution you are looking for. Last edited 07-25-2006 at 10:47 AM. |
| |
| | #3 |
| Member Join Date: Jan 2006 Location: Massachusetts
Posts: 136
![]() | As was said above, place your whole page in a "container" div, and then style the div with CSS to include the following. Code:
Then remember to left-align your text in your elements further in. Hope this helps.
__________________ Visit my new and improved humor site: It's Just Humor Or check out the newest source for HQ celebrity images: It's Just Babes |
| |
| | #5 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | How does it work? I've never seen the "auto" attribute. |
| |
| | #6 |
| Senior Member Join Date: Apr 2006 Location: Hull, United Kingdom.
Posts: 317
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Hi there, I assume it automatically assigns the amount of space on each margin, by the amount of space remaining, this is just an assumption although I'm sure I have used this attribute before? Regards, Kieran Taylor. |
| |
| | #7 | |
| Member Join Date: Jan 2006 Location: Takatuka Land
Posts: 67
![]() | Quote:
Sorry I'm an absolute beginner. ![]()
__________________ Funny smilies | |
| |
| | #8 |
| Member Join Date: Jan 2006 Location: Takatuka Land
Posts: 67
![]() | Now I have a problem, it looks like this even if I put the code out and the page is again as it was already it remains like this http://www.jpadilla-international.com/ Pls help
__________________ Funny smilies |
| |
| | #9 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | That is is an id selector, you would insert the above code into your css. You would then apply that id (container) to one element in your html file, this could be the body tag, a div tag, or any other tag that the attributes would apply to. like this: Code:
That applies the attributes in #container to the body tag. Last edited 07-26-2006 at 09:50 AM. |
| |
| | #10 |
| Member Join Date: Jan 2006 Location: Takatuka Land
Posts: 67
![]() | o.k. again, When I insert:#containter { margin: 0; margin-left: auto; margin-right: auto; } OR #containter { margin: 0; margin-left: auto; margin-right: auto; } The site becomes centric however it’s slighty displaced to the right on the upper part, that sucks. Did u forgot a small detail? So what else can we try? Thanx
__________________ Funny smilies |
| |
| | #11 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | I'm not seeing any difference, are you adding that code to your live site, or are you doing it on your home computer files? I don't see the code in css or the selector in your html. Make the changes on the live website, so we can help you further by viewing the changed code and the effect is has on your page. |
| |
| | #12 | |
| Member Join Date: Jan 2006 Location: Takatuka Land
Posts: 67
![]() | Quote:
__________________ Funny smilies | |
| |
| | #13 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | It's hard for me to visualize it, maybe try putting the code back in, I will be here for the rest of the morning, so I can see it first hand, after I respond again, you can then change it back so that it doesn't remain looking bad for too long. |
| |
| | #14 |
| Senior Member Join Date: Apr 2006 Location: Hull, United Kingdom.
Posts: 317
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Hi there, Do you know that your site is still left-aligned? Regards, Kieran Taylor. |
| |
| | #15 |
| Member Join Date: Jan 2006 Location: Takatuka Land
Posts: 67
![]() | Can anybody help me to place my site centric?
__________________ Funny smilies |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| support script ? | tai23 | Introduce yourself | 2 | 10-26-2006 04:12 PM |
| support lebanon | yalla | Domains for Sale | 0 | 10-24-2006 04:12 PM |
| My Music Education Needs Support | Intripita-MH | General Talk | 0 | 10-13-2006 12:04 AM |
| Dear Tech Support | NavyCS | General Talk | 0 | 02-07-2006 04:51 AM |