473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Please Help Me to Expand the Margins on my Blog

I'm a member of a social network and I would like to expand the margins in the template I have.

There is a HTML reader to help design your page.

Please tell me the code for expanding the margins within a template. The template has a 4 inch white space on the left side of the page, that is driving me crazy. I would like the text and layout to expand wider. I only know the basics of HTML.

Here is my web page:

http://www.blackplanet.com/Curiosity336/

Thank you in advance
Oct 4 '08 #1
12 86681
JamieHowarth0
533 Expert 512MB
Hi there,

Firstly, welcome to Bytes.com. Please be sure to take a read through the Posting Guidelines and FAQs.

This forum is predominantly for helping individuals with either architectural design guidance for software development or for assisting with debugging individual lines of code that you have already written.
As you don't appear to have made any attempt at altering the layout yourself, I suggest you take a look at the following resources here at W3Schools as they have some wonderful tutorials for beginners to this technology.

Once you understand what you're trying to achieve and you've given it a good shot, then we'll be more than happy to help out with any code you've written. But we won't write your code for you.

codegecko
Moderator
Oct 4 '08 #2
eWish
971 Expert 512MB
You will need to find a way to determine what CSS to edit that is being used. Without seeing any code it is hard to say.

--Kevin
Oct 4 '08 #3
David Laakso
397 Expert 256MB
You will need to find a way to determine what CSS to edit that is being used. Without seeing any code it is hard to say.

--Kevin
Open his CSS files in the Firefox Web Developer extension. Or download the HTML, CSS, and images in Opera. Or view the CSS using the absolute paths to them in the head of the source document.

All of which, imho, is a lot easier than trying to debug CSS/(X)HTMLposted to the forum by pasting between code tags-- particularly when done by folks who either don't know what they are doing, or guessing at where they think the problem lies.
Oct 4 '08 #4
David Laakso
397 Expert 256MB
I'm a member of a social network and I would like to expand the margins in the template I have.
http://www.blackplanet.com/Curiosity336/
That may be easier said than done. It is a complex CMS (Content Management System), with complex CSS, and an even more confusing and complex array of inline styles.

All I can suggest follows:

The block "Members Dock" that is a against the right rail is an "iframe." Its positioning is controlled by an inline style. Find the page(s) having the member dock and...

1/ Insert this to enclose the page and the dock. Put it immediately above the inline style for the iframe. And modify the CSS positioning of the iframe as shown.
Expand|Select|Wrap|Line Numbers
  1. <div style="width: 1050px; border: 1px solid red;margin: 0 auto" id="stuff">
  2.  
  3. <div style="width: 1050px; border: 1px solid red;margin: 0 auto" id="stuff">
  4.  
  5.  
  6. <iframe style="border-width: 0pt; position: absolute; visibility: visible; width: 10em; height: 10em; top: -110px; left: -110px;" id="_yuiResizeMonitor" src="data:text/html;charset=utf-8,%3Chtml%3E%3Chead%3E%3Cscript%20type%3D%22text%2Fjavascript%22%3Ewindow.onresize%3Dfunction%28%29%7Bwindow.parent.YAHOO.widget.Module.textResizeEvent.fire%28%29%3B%7D%3Bwindow.parent.YAHOO.widget.Module.textResizeEvent.fire%28%29
  7. %3B%3C%2Fscript%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E">
  8.  
  9. </iframe><div style="visibility: visible; z-index: 4; top: 205px; /* delete this----> left: 1309px*/  /* add this---->*/right:250px;" id="memberDock_c" class="yui-panel-container shadow show-scrollbars dock">
  10.  
Then close the div that was added, by adding </div> immediately before the very last
Expand|Select|Wrap|Line Numbers
  1. <script src"...">
  2.  
tag at the very bottom of the page.

Good luck and best wishes for success...
Oct 4 '08 #5
Thank you everyone for your help, I do see I'm in above my head, lol.

I didn't realize you give advice mainly for advance HTML coding. It does inspire me though, because I don't understand the terminology being used, and I think it's something I should learn.

Than you
Oct 5 '08 #6
David Laakso
397 Expert 256MB
I didn't realize you give advice mainly for advance HTML coding.
Who said that? Or where does it say that?

If you are interested in learning (X)HTML and CSS, this is one of many online resources you might consider:
HTML and CSS Tutorials
Oct 5 '08 #7
Who said that? Or where does it say that?

If you are interested in learning (X)HTML and CSS, this is one of many online resources you might consider:
HTML and CSS Tutorials
Thank you,

I found another great site Tizag.com I'm actually up to the "font chapter".

I'm still going to come on here and see if I can learn, I would feel like a computer genius if I can read this. lol
Oct 7 '08 #8
David Laakso
397 Expert 256MB
Thank you,

I found another great site Tizag.com I'm actually up to the "font chapter".

I'm still going to come on here and see if I can learn, I would feel like a computer genius if I can read this. lol
Good. You may find this css reference and this layout tutorial helpful.
Oct 7 '08 #9
JamieHowarth0
533 Expert 512MB
Hi again,

One thing to bear in mind is that the system that this site uses will throw code in there which you cannot necessarily control, change, or do anything whatsoever about. So if you are determined to pimp your profile, you have to learn to work around this limitation.

The two things you have to do are:
  1. Find the HTML elements that you want to move (make sure you find the beginning and end tags correctly). I suggest downloading Firefox and getting the DOM Inspector extension, which gives you a way of clicking parts of the page and it showing up in a tree-like navigation form so you can see where it fits in the page and code.
  2. Learn CSS and how it gets applied to HTML (again, the DOM Inspector can help here). I would suggest saving your page as a copy on your hard disk, so then you can change the styles and learn how the page is designed and built up using CSS style rules.

At that point you should have a fairly good understanding of HTML and CSS, and what you want to do and how to go about it. If you get stuck with any of the concepts/techniques of CSS then you can always ask us here, we're a friendly bunch :-)

codegecko
Oct 8 '08 #10
Interesting blog you got here. It would be great to read more concerning that theme. The only thing this blog misses is a few pictures of some gadgets.

David Flouee

edit: link removed
Oct 15 '10 #11
Death Slaught
1,137 1GB
The width is pretty easy to adjust depending in what the site allows you to edit.

If you have direct access to the CSS then you need to adjust the width of two rules. A rule is basically used to tell the browser what it is you want to change, and how you want to change it.


The first, #pagebox

Expand|Select|Wrap|Line Numbers
  1. #pagebox {
  2.     background: none repeat scroll 0 0 #FFFFFF;
  3.     border: 1px solid #CCCCCC; 
  4.     margin: 0 auto;
  5.     position: relative;
  6.     width: 786px;
  7. }

Change the width to whatever you would like - I suggest 986px. Make sure to include the px (pixels).



The second, .pagebody

Expand|Select|Wrap|Line Numbers
  1. .pagebody {
  2.     clear: both;
  3.     width: 786px;
  4. }

Once again change the width except this needs to match the width you gave #pagebox - as before I suggest 986px.



If you don't have access to the CSS but do for the HTML, then you just need to add two small bits of code. I know this is a lot of code to scroll through but just take your time. Also, most browser will allow you to press ctrl + f and search for things on the page.


First look for pagebox,

Expand|Select|Wrap|Line Numbers
  1. <div id="pagebox" class="layout_B">
and add the style attribute. An attribute is used to tell the browser more about the element or tag, in this case, div. For example, the id attribute tells the browser that this div (division) has an id of pagebox.

Expand|Select|Wrap|Line Numbers
  1. <div id="pagebox" class="layout_B" style="width: 986px;">
Then we do the same thing with pagebody,

Expand|Select|Wrap|Line Numbers
  1. <div class="pagebody tmpl_flexed_1" id="pagebody">
Expand|Select|Wrap|Line Numbers
  1. <div class="pagebody tmpl_flexed_1" id="pagebody" style="width: 986px;">




I hope this helps, Regards, Death
Oct 16 '10 #12
Death Slaught
1,137 1GB
Can we not bring back 2+ year old threads? The person has abandoned the project and hasn't been back here in 2 years.

Note to self: Read the post dates.
Oct 16 '10 #13

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

Similar topics

9
by: Frances Del Rio | last post by:
when I test my stuff with the validator in HomeSite it tells me the body tag no longer reads margin attributes.. does this mean now margins are to be specified only in CSS? I work for an...
1
by: dave | last post by:
Sorry this has probably been asked a million times before. I have a nested div and want it to expand vertically to fill its parent div. It does it in IE6 but not Mozilla. Height property...
4
by: Bryan R. Meyer | last post by:
Hello Everyone, I've been working with CSS trying to understand it and incorporate it into a revised version of my web page. I've noticed a few problems which perhaps someone could shed some...
3
by: MostlyH2O | last post by:
Hi Folks, I am trying to output the content of my ASP page to an MS Word Document with a specific page size (8.5x11) and margins (.25" all around). I have used the Response.ContentType =...
0
by: Gerald Roston | last post by:
I have an application that is supposed to print a badge using a Dymo LabelWriter 330. The problem I am having is this - when I 'Print Preview' the badge, it is displayed properly, but when I...
7
by: tm | last post by:
I am trying to print a form using the following code, everything works fine but the margins are not acted upon. What I am I doing wrong? Private Sub CaptureScreen() Dim myGraphics As...
0
by: Todd | last post by:
Hi guys, Strange bug if someone could help. ... Im using printDialog, printDocument and printPreviewDialog to write my print routines for a graphics application. I want to allow the user to...
7
by: Mark | last post by:
Hi, I am creating application in VB 2005. and when I print report it adds extra 0.45 cm margin on left and top, and the reason for this is physical margins of printer. Is it possible to change...
7
by: Lazareth | last post by:
Hi. Please help. Still learning... I am trying to write some code that will assign certain values to a variable based on values from a textbox. So far I have the following but It doesn't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.