473,386 Members | 1,969 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,386 software developers and data experts.

asp.net and divs

I'd like to build a really basic site using no tables, only divs.

Obviously this will rely on CSS for formatting and positioning.

I have a left-hand navigation div. Is it possible to target a link in this
div into the main content div?

Thanks in advance!
Mike

Nov 18 '05 #1
6 1068
Yes if inside the main content is an Iframe

"mikieg_99" <mi************@nospam.etypemedia.co.uk> wrote in message
news:dc******************************@localhost.ta lkaboutsoftware.com...
I'd like to build a really basic site using no tables, only divs.

Obviously this will rely on CSS for formatting and positioning.

I have a left-hand navigation div. Is it possible to target a link in this
div into the main content div?

Thanks in advance!
Mike

Nov 18 '05 #2
Thanks Asya...
I've been told that iframes are evil and will mess up all cross-browser
compatibility... they are kinda cool, but are they generally good
practice?

Mike

Nov 18 '05 #3
As long as the divs are on the same page, why would you target a link in one
to another? Are you talking about anchors?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"mikieg_99" <mi************@nospam.etypemedia.co.uk> wrote in message
news:dc******************************@localhost.ta lkaboutsoftware.com...
I'd like to build a really basic site using no tables, only divs.

Obviously this will rely on CSS for formatting and positioning.

I have a left-hand navigation div. Is it possible to target a link in this
div into the main content div?

Thanks in advance!
Mike

Nov 18 '05 #4
Cross Browser not an issue for me, I work for an IE only house so I dont
have to worry.
You can always use clientside webservice call and write the return string to
the content div if you dont want to use IFrames??

"mikieg_99" <mi************@nospam.etypemedia.co.uk> wrote in message
news:56******************************@localhost.ta lkaboutsoftware.com...
Thanks Asya...
I've been told that iframes are evil and will mess up all cross-browser
compatibility... they are kinda cool, but are they generally good
practice?

Mike

Nov 18 '05 #5
Hi Kevin,
Thanks for the response.

No, I actually want to have a constant navigation pane on the left.

I then want to click on one of these nav links and new content appears in
the main content div.

Essentially, I want to be able to treat a div exactly like an iframe.

Apologies if this is a really basic thing... newbie here!

Thanks in advance!
Mike

Nov 18 '05 #6
Hi Mike,

I see. Well, since the page itself is not changing, it will either have to
use JavaScript on the client side to change the content in the divs, or it
will have to do a PostBack. However, in neither case will a hyperlink per se
be needed. In other words, as you're using Divs, and not iFrames or Frames,
you're not talking about changing the content in another browser instance.
You're talking about changing the same page in the same browser instance.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"mikieg_99" <mi************@nospam.etypemedia.co.uk> wrote in message
news:69******************************@localhost.ta lkaboutsoftware.com...
Hi Kevin,
Thanks for the response.

No, I actually want to have a constant navigation pane on the left.

I then want to click on one of these nav links and new content appears in
the main content div.

Essentially, I want to be able to treat a div exactly like an iframe.

Apologies if this is a really basic thing... newbie here!

Thanks in advance!
Mike

Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Egon Pasztor | last post by:
Hi. I'm new at CSS, so maybe this is obvious, but I've looked around quite a bit looking for a solution. I'm playing with the vertical positioning of elements in a 2-column layout. The...
2
by: David Winter | last post by:
This is a totally trivial CSS problem, I'm sure, but I don't get it. I want a centered DIV with a fixed width between two other DIVs that should fill the rest of the window/viewport (= 100%). How...
12
by: deko | last post by:
Is there any way to work around the blank space created by hidden divs? I'm trying to use a relatively postioned divs with show/hide behaviors to annotate an image. The divs show/hide...
15
by: red | last post by:
How do I center two side by side divs ? I've been writing css pages for a while but there's one thing tha still eludes me. I can center a div with margin auto. I can place two divs side by side...
3
by: Marc | last post by:
Hi to all, I have several DIVs in a page, each has a unique name. I'd need a method to cycle through all DIVs so that I can change their style. For example, let's say I need to set a red...
39
by: WindAndWaves | last post by:
Hi Gurus I have a page, which looks a bit like this: .... <body> <div ID=id1>................</DIV> <div ID=gsd>................</DIV> <div ID=ewd>................</DIV> <div...
12
by: meltedown | last post by:
I would like the floating divs to float and then the header to come after them , on the left. That's what I thought clearing the floats was for, but in this example, the header is to the right of...
2
by: tasman.hayes | last post by:
I'm experimenting with converting a site from a table layout to CSS. I'm floating three DIVs in a row for the top of a website (a logo, navigation buttons and a email list signup box). The DIVs...
2
by: sicapitan | last post by:
Hi There :) Is it possible to get the 4 corners where 2 dives intersect? I'm making a table-ish system and som drag and drop elements need to snap to the area intersecting between 2 divs. I...
11
by: dusk | last post by:
Hi, I'm very new to javascript, and I'm having trouble finding a way to display a string of divs without the code getting really messy. I have several different pages to write, each with about...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.