|
|
#1 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Dec 2010
Location: Zagreb, Croatia
Posts: 990
Reputation: 39
|
The problem is, when i Ctrl + Scroll (on mouse) and zoom in/out, all my images fuck up, how to make them resize when someone rezooms, also that images are only for my resolution, how to fix that? Also note, thats just testing some things in HTML, that wont be my website (lol). Here are some screens:
Before (Please patience for pics to load) ![]() After
|
|
|
|
|
|
#2 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Dec 2010
Location: Zagreb, Croatia
Posts: 990
Reputation: 39
|
Bump.
|
|
|
|
|
|
#3 |
|
Little Clucker
![]() Join Date: Mar 2011
Posts: 38
Reputation: 2
|
Uhm. When In you're text edit ( I use dreamweaver ). You need to change the img format ( should be px ) to %. Then add auto onto it. I think, I havn't done it in a while. ;o
|
|
|
|
|
|
#4 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2008
Location: Germany
Posts: 3,277
Reputation: 274
|
to make this possible you need to assign percantage sizes to everything you want to resize on resolution.
because px is a fixed size and percantage is based on the resolution of the window |
|
|
|
|
|
#5 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2010
Location: The Netherlands Occupation: Officer in training
Posts: 1,399
Reputation: 477
|
Are you using a web builder? maybe WYSIWYG?
If so, you could edit the properties of your content to automatically size to the screen. -J |
|
|
|
|
|
#6 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2010
Location: http://localhost Status: Active
Posts: 1,023
Reputation: 37
|
ok what you have to do is add a wrapper to the code. Which means you have to create a new div tag with height:auto and width to what ever width you want the site to be. Also add margin:0px auto; which will center this div. Then you will have to add this Div to the beginning like after <body> and before </body> so every thing will stay inside the div according to place and wont go any where when you zoom. Pls let me know if have any more problems
|
|
|
|
|
|
#7 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Dec 2010
Location: Zagreb, Croatia
Posts: 990
Reputation: 39
|
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Index</title>
<script type="text/javascript" src="http://widgets.amung.us/map.js"></script><script type="text/javascript">WAU_map('9l52w3o4390z', 420, 210, 'natural', 'target-red')</script>
<body background="bg_website.jpg"><div class="addthis_toolbox addthis_default_style "> //the Background!
<a class="addthis_button_tweet"></a>
<a class="addthis_counter addthis_pill_style"></a>
</div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4dd177fb45db1462"></script>
</body>
</html>
|
|
|
|
|
|
#8 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2010
Location: http://localhost Status: Active
Posts: 1,023
Reputation: 37
|
as far as I can see, I don't even see a CSS attached here and the coding looks (no offence but) horrible. :/
I suggest that if you are a starter at HTML please use tables to design webpages. CSS will be quite complicated to a html starter. |
|
|
|
|
|
#9 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Dec 2010
Location: Zagreb, Croatia
Posts: 990
Reputation: 39
|
Thats just a example... So you can show me there..
|
|
|
|
|
|
#10 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2010
Location: http://localhost Status: Active
Posts: 1,023
Reputation: 37
|
ok all you hav to do is open up your css and add this
Code:
#wrapper {
width:960px;
height:auto;
Margin:0px auto;
}
1: Find <body> and after that: Code:
<div id="wrapper"> Then find </body> and add before that: Code:
</div> |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| what is the skins html | misho1 | Help Archive | 3 | 02/04/2011 03:24 AM |
| [Tool/Web/Other] [PHP] PHP/HTML Masters Help! | Ironboy500 | Everything and Nothing | 11 | 24/05/2010 10:48 AM |
| [HTML] Read | mevi | Everything and Nothing | 6 | 10/11/2009 09:11 PM |
| Im learning HTML!!! | SanMarinoRP | Everything and Nothing | 8 | 06/09/2009 11:26 PM |