Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hello...i've only been reading abou 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hello...i've only been reading about css for a couple days and i want to figure this out: i want to create a page which has the main logo/table thingy positioned so that it extends from one side of the browser window to the other -- like one continuous box, with the left and right edges flush with each side of the window. I want it to be fixed there, so that it won't appear to move when the window is resized...it will just remain flush with the left and right sides of the window. Is there a way i can do this? thanks in advance.

 
Well depending on how your logo looks, you have to use a table that is 100% width and make sure your margins on your website (via body tag) are at 0 .
 
Also if your logo is'nt the whole size of the page, and your logo has a background color you should set the background color of the tablecell to the same as your logo then it will "look" like your logo is as big as that cell.

Just my 2 cents...

Rizza
 
If you're using a graphic image for your logo (gif or jpg), you're going to be out of luck. Although you dynamically change the size of the image, you can't control the aspect ratio so it will look stretched or bunched out of shape.

Better to use text and put it in a table defined as 100% wide. Also, in the body tag, set the marginwidth and marginheight to 0. There's always a better way...
 
Right you cant stretch the image bt you could always use tables and cut the image into pieces like left right and center then use the <align=&quot;&quot;> tag accordingally, and set the background color of the cells to the same as your graphic, but only if the graphic background color is solid.

Otherwise it gets more complicated but, it works....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top