473,508 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

changing in positions of the items

15 New Member
Hello it may be a silly question but am new in HTML , i have a html page that contain several items , labels , images... but when i open it in the browser and change the size of the browser the items change their position i need to keep them fixed not to move when the browser change its size since the design of the page will change
Jan 16 '07 #1
4 1499
acoder
16,027 Recognized Expert Moderator MVP
You need to use a fixed width layout. Give your code and we can suggest changes.
Jan 16 '07 #2
Alaashamas
15 New Member
<div class="nav">
<ul>
<li><a href="default.html" title="Home">Home</a></li>
<li><a href="aboutus.html" title="About us">About us</a></li>
<li><a href="Projects.html" title="Our Porjects">Our Projects</a></li>
<li><a href="News.html" title="News">News</a></li>
<li><a href="mailto:alaas@Softflow.com.lb" title="">Contact us</a></li>
</ul>
</div><!-- end of nav -->


.nav {
float:left;
width:150px;
margin-left:-100%;
margin-top:20px;
}

.nav ul li {
/*display:block;*/
margin-top:0;
background:url(navbg.png) left repeat-x;
border-bottom:1px solid #000;
font-weight:700;
padding:10px;
}
Jan 16 '07 #3
AricC
1,892 Recognized Expert Top Contributor
<div class="nav">
<ul>
<li><a href="default.html" title="Home">Home</a></li>
<li><a href="aboutus.html" title="About us">About us</a></li>
<li><a href="Projects.html" title="Our Porjects">Our Projects</a></li>
<li><a href="News.html" title="News">News</a></li>
<li><a href="mailto:alaas@Softflow.com.lb" title="">Contact us</a></li>
</ul>
</div><!-- end of nav -->


.nav {
float:left;
width:150px;
margin-left:-100%;
margin-top:20px;
}

.nav ul li {
/*display:block;*/
margin-top:0;
background:url(navbg.png) left repeat-x;
border-bottom:1px solid #000;
font-weight:700;
padding:10px;
}
Please show the comple code and use [code] tags
Jan 16 '07 #4
drhowarddrfine
7,435 Recognized Expert Expert
If you use a percentage for the margin, then the content will move depending on the size of the browser. Remove that line.
Jan 16 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2650
by: Matt | last post by:
I use CSS for positionings in my html page, the problem is when i resize the browser, the positions are offset. Here's the code, any ideas?? <html> <head> <style type="text/css">
2
1959
by: Alpha | last post by:
I have a window application. On one of the form, there is a listbox and a few combox. The lstSchItem has a dataview as a datasource. The comboxes are bind to its selected value but through the...
7
2929
by: Sakharam Phapale | last post by:
Hi All, How to preserve the old font properties while changing new one? I posted same question 2 months back, but I had very small time then. eg. "Shopping for" is a text in RichTextBox and...
6
7196
by: segue | last post by:
Hi; I need to change the order of a listbox array from a form app where I select order up or down. What's a good way to do that? Regards; Segue
1
1433
by: bhu | last post by:
Hi I want to retrieve data from the database and save it to txt File with positions. Let us Say 3 columns are got, i have to save at say 3-8 the first column , 9-15 2nd Column, 16-29 3nd...
1
1230
by: eight02645999 | last post by:
hi say i have a list alist = I wanted to change the elements , say alist . If i do alist = "t" , it gives which is not what i want. I wanted alist =
2
2076
by: M | last post by:
Could anyone please help me out? I am working on a new Intranethomepage for our company, and I really, really would like to make something similar to http://www.google.nl/ig? hl=nl . There you...
5
2222
by: czechboy | last post by:
Hi, what is the fastest way to search for all occurences of a string in a very long string (from several KB to MB). What I want to get is an array of numbers with positions of each occurence....
8
1861
by: richard | last post by:
I have <div id=box1 style="display:block"as the initial setting. I need to change the "display:block" to "display:none" then back to "display:block" as a means of clearing anything that might be...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5625
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.