SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    calif
    Posts
    743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What code here creates a box?

    When a search is run, in this php nscript, the search results appear, which is a vertical list of video thumbnail images. The page displays a border around each thumbnail with a wide margin.

    Can you look at this code, from this file called search_results, and tell me what line(s) generates the box/border around each thumbnail that is displayed? thanks

    Code:
    <!--Begin Left Column-->
    <div id="column-left-2">
    <br />
      <!--Begin Whats Showing Menu-->
      <div class="header-narrow"><h3>[var.get_type]</h3></div>
        <div class="whats-showing">
          </div>
       <div class="container-narrow-bottom"></div><!--End Whats Showing Menu-->
       <br />
    <!--Begin Right Column-->
    <div id="column-right-2">
    
      <!--Begin Video Search List-->
      <div style="height: 2px;">&nbsp;</div>
    
      <span style="margin-bottom: 12px;" class="font5_15">
        "[var.keyword]"&nbsp;&nbsp;[var.get_type_word]&nbsp;[var.lang_search]&nbsp;[var.results_show]&nbsp;-&nbsp;[var.results_of]&nbsp;of&nbsp;[var.total_records]&nbsp;[var.lang_results] <br />
    
         <form id="buy" name="buy" method="post" action="buy-video.php">
           <input type="submit" name="purchase" value="Use Credits Now" style="margin:7px 0" rel="gb_page_center[600, 435] ">
           <input type="button" name="search" value="Search Again" onclick="window.location.href='page.php?page=9';" style="margin:7px 0">
    
           <input type="hidden" name="keyword" value="[var.keywords2]">
           <input type="hidden" name="submitted" value="yes">
           <input type="hidden" name="user_id" value="[var.user_id]">
           <input type="hidden" name="id[]" value="[blkfeatured2.indexer;block=input]"></input>
    
      </span>
    	<br>
    	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="checkall" onclick='checkedAll()'> Select All<br>
    	<!-- end checkbox mod -->
      <div id="content-list">
        <ul class="content-list-thumb" style="margin-top: 13px;">
          <span style="margin-left: 1px;"><input type="checkbox" name="checkedBoxs[]" value="[blkfeatured.indexer;block=div]"></span><br /> <br />
          <li><a href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]" rel="gb_page_center[600, 435]"><img src="uploads/thumbs/[blkfeatured.thumb_string;block=div].jpg" alt="video pic" width="120" height="90" border="0" /></a></li>
          <!--li><a onclick="return doCreditCheck();" href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]"><img src="uploads/thumbs/[blkfeatured.thumb_string;block=div].jpg" alt="video pic" width="120" height="90" border="0" /></a></li-->
        </ul>
        <ul class="content-list-info">
          <li><h4><span style="color: #800000;">[var.lang_title]:</span>&nbsp;&nbsp;<a href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]" rel="gb_page_center[600, 435] "><!--[blkfeatured.title;htmlconv=no;block=div;ope=max:70;comm]--></a></h4></li>
          </li>
        </ul>
     [onload;block=div;when [var.type_videos]=1;]
      </div>
      <!--End Video Search-->
    
    
    <-- Pagination start -->
      <div align="center">
        <div id="pagination">
          <li>&nbsp;</li>
          <ul>[var.show_pages;htmlconv=no]</ul>
        </div>
      </div>
      <!-- Pagination end -->
    </div><!--End Right Column-->
    </form>

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    None of that code is doing it - anything affecting appearance is done via CSS, not via HTML.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Wizard bronze trophy bluedreamer's Avatar
    Join Date
    Jul 2005
    Location
    Middle England
    Posts
    3,417
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Add this to your CSS...

    Code:
    a img {border: 0;}


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •